A trap with full screen in Lion
A trap with full screen in Lion
- Subject: A trap with full screen in Lion
- From: Gideon King <email@hidden>
- Date: Fri, 29 Jul 2011 12:38:22 +1000
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. I haven't checked but assume this will also apply to things like delegates etc too. And if you were relying on something in a custom NSWindow subclass, that would be gone...
I have found that [[NSApp mainWindow] windowController] returns the right thing, which is sufficient for my needs at the moment, seeing as it's UI level and working on the current document.
I don't know whether there are any other issues with the full window but I thought it would be interesting to bring up this issue for discussion in case there are further implications.
Regards
Gideon
_______________________________________________
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