Re: A trap with full screen in Lion
Re: A trap with full screen in Lion
- Subject: Re: A trap with full screen in Lion
- From: Martin Wierschin <email@hidden>
- Date: Fri, 29 Jul 2011 16:44:55 -0700
> I just came across a bit of an issue with the full screen mode in Lion: if you have a view and use [[self window] windowController] to get at your window controller, it will return nil in full screen mode. The window gets swapped out with an NSToolbarFullScreenWindow, which doesn't have a window controller set.
Thanks for letting us know about this potential issue.
> I have found that [[NSApp mainWindow] windowController] returns the right thing, which is sufficient for my needs
It looks like you can also get to the proper window controller via: [[[toolbarItemView window] parentWindow] windowController], which seems like a safer solution.
Best,
~Martin
_______________________________________________
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