> 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 (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com