discuss-gnustep
[Top][All Lists]
Advanced

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

Re: sheets in GNUstep


From: Gregory Casamento
Subject: Re: sheets in GNUstep
Date: Thu, 19 Mar 2015 12:03:12 -0400

Fred,

You are correct. Most of the code there is by me.  I never really found a satisfactory way to implement sheets. The issue is that they behave like modal panels which are attached to the window they are associated with and it's difficult to achieve this effect in a cross platform manner.  I considered adding the sheet as a subview in the window but the view needs to be tested like an NSWindow subclass which presents some issues. 

I believe it is worthwhile to explore a solution to make it work.  I am open to suggestions and discussion at this point. 

GC 


On Thursday, March 19, 2015, Fred Kiefer <address@hidden> 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?

Fred

On the road

Am 19.03.2015 um 00:10 schrieb Gregory Casamento <address@hidden>:

> Yikes, I believe that the sheets implementation should be changed to
> just bring up a modal panel.  That is, after all, the intended effect
> of the sheet.
>
> GC
>
> On Wed, Mar 18, 2015 at 6:42 PM, Riccardo Mottola
> <address@hidden> wrote:
>> Hi,
>>
>> I tried to enable sheets in GNUMail under GNUstep, that is, remove the
>> "special GS code".
>> For save panel it works, however for a generic alert it does not.
>> I would expect a sheet to look and behave similar to an NSPanel, just modal
>> to the window (like we fake drawers with a panel).
>>
>> What I get however is a decoration-less, border-less panel with a different
>> color.
>>
>> I attach a screenshot.
>>
>> Riccardo
>>
>> _______________________________________________
>> Discuss-gnustep mailing list
>> address@hidden
>> https://lists.gnu.org/mailman/listinfo/discuss-gnustep
>
>
>
> --
> Gregory Casamento
> GNUstep Lead Developer / OLC, Principal Consultant
> http://www.gnustep.org - http://heronsperch.blogspot.com
> http://ind.ie/phoenix/
>
> _______________________________________________
> Discuss-gnustep mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/discuss-gnustep

_______________________________________________
Discuss-gnustep mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnustep


--
Gregory Casamento
GNUstep Lead Developer / OLC, Principal Consultant
http://www.gnustep.org - http://heronsperch.blogspot.com
http://ind.ie/phoenix/

reply via email to

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