It should not be a subview, given that a sheet can be larger than the
window it's attached to. And it doesn't resize the window under OS X (how
would the code deal with situation where a dimension in sheet's minimum
size is larger than a dimension in view's or window's maximum size?)

On Thu, Mar 19, 2015 at 5:27 PM, Fred Kiefer <[email protected]> wrote:

> Am 19.03.2015 um 17:01 schrieb Riccardo Mottola <
> [email protected]>:
> > 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
> _______________________________________________
> Discuss-gnustep mailing list
> [email protected]
> https://lists.gnu.org/mailman/listinfo/discuss-gnustep
>
_______________________________________________
Discuss-gnustep mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnustep

Reply via email to