discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sheets in GNUstep


From: Fred Kiefer
Subject: Re: sheets in GNUstep
Date: Thu, 19 Mar 2015 18:27:35 +0100

Am 19.03.2015 um 17:01 schrieb Riccardo Mottola <address@hidden>:
> Fred Kiefer wrote:
>> I think most of the code there in GSAlertSheet is by you, so you are of 
>> course free to remove it again, but wouldn't it be more worthewhile to find 
>> out what is missing for a proper implementation of sheets? I would expect 
>> that we need some copy of ruModalSession: that only ignores events for the 
>> parent window, or even more simple ignore events in a window while a sheet 
>> is attached to it. Plus some additional code that keeps the two windows 
>> together. What else would be needed?
> 
> the sheet actually seems working!
> 
> Why is it missing window decorations and has an unexpected color?
> 
> This explains the color I suppose:
>      [self setBackgroundColor:           [[parent backgroundColor]         
> highlightWithLevel: 0.4]];
> 
> Put I fail to understand where the window should be created.

Just a few lines above where the styleMask is set to NSBorderlessWindowMask. 
All this is intentional and looks correct to me. As Greg explained what we 
really need to sort out is how to get the two windows to interact properly. 
Here his idea to do it on the view level could be the solution.

Fred


reply via email to

[Prev in Thread] Current Thread [Next in Thread]