Re: NSToolbar unhidden in fullscreen mode
Re: NSToolbar unhidden in fullscreen mode
- Subject: Re: NSToolbar unhidden in fullscreen mode
- From: Graham Cox <email@hidden>
- Date: Tue, 03 Dec 2013 19:46:48 +0100
On 3 Dec 2013, at 6:52 pm, Kyle Sluder <email@hidden> wrote:
> From the 10.8 AppKit release notes:
>
>> A window delegate may also specify that the window toolbar be removed from the window in fullscreen and auto-shown with the menubar by including NSApplicationPresentationAutoHideToolbar in the presentationOptions returned from -window:willUseFullScreenPresentationOptions:.
>
> Maybe the default options changed in 10.9.
Well, this behaves a bit oddly.
If I set this flag, then the toolbar becomes attached to the menubar, as advertised, and shows and hides with it, as advertised. Seemingly as it goes into fullscreen mode, the toolbar becomes visible as it attaches to the menubar, then animates away again as the menubar is hidden.
If I don’t set this flag (i.e. the default), then it seems to start to go through the motions of showing the toolbar prior to detaching it, but then not detaching it, and so leaving it visible.
It looks like it could be a bug to me - attaching to the menubar became the focus of the code change, and it broke the normal behaviour. It’s no biggie, setting the flag gives a reasonable outcome for my app, but it would be nice if the standard behaviour worked as expected. Radar time again…
—Graham
_______________________________________________
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