Re: window:willPositionSheet:usingRect: not called in full-screen mode
Re: window:willPositionSheet:usingRect: not called in full-screen mode
- Subject: Re: window:willPositionSheet:usingRect: not called in full-screen mode
- From: Uli Kusterer <email@hidden>
- Date: Thu, 26 Feb 2015 14:45:32 +0100
On 25 Feb 2015, at 15:47, Arjan van Leeuwen <email@hidden> wrote:
>> This method is useful in many situations. If your window has a toolbar, for
>> example, you can specify a location for the sheet that is just below it. If
>> you want the sheet associated with a certain control or view, you could
>> position the sheet so that it appears to originate from the object (through
>> animation) or is positioned next to it.
>
> Great, because that's exactly what I'm using it for :). However, when my
> app is in full-screen mode, this function never gets called. Other related
> delegate functions, like windowWillBeginSheet: and windowDidEndSheet: do
> get called correctly on the delegate, so the delegate is obviously still
> there and as far as I can see should be receiving a call to
> window:willPositionSheet:usingRect:.
I wonder whether Apple's UI team know of this documentation. Positioning a sheet next to any other UI element seems totally wrong for everything we've seen in Mac UI so far. Especially given 10.7 introduced pop-overs, which are designed exactly for that purpose and are not modal (or rather, cancel their mode when you click outside them, at least by default).
Are you sure it is a good idea to use a sheet for something like that? It sounds more like a job for a popover, which also handles much more of the required behaviour automatically.
> Does anyone know what I can do to make the framework call
> window:willPositionSheet:usingRect:, even in full-screen mode? Or if not,
> what other way should I use to position the sheet that will work in all
> situations?
Fullscreen has a lot of assumptions about your window. We have a custom window title bar, yet when we're in fullscreen, the OS draws a fake "standard" title bar and toolbar for us floating above the window when you show the menu bar. Given you can't even inhibit that, I'm not surprised that they would also show sheets in the standard location relative to these fake window decorations.
Sorry I'm not of more help,
-- Uli
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden