• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
A trap with full screen in Lion
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: A trap with full screen in Lion
      • From: Martin Wierschin <email@hidden>
    • Re: A trap with full screen in Lion
      • From: Corbin Dunn <email@hidden>
    • Re: A trap with full screen in Lion
      • From: Gideon King <email@hidden>
  • Prev by Date: Re: Lion doesn't like tricky.key.paths in bindings?
  • Next by Date: Re: Lion doesn't like tricky.key.paths in bindings?
  • Previous by thread: Re: Freaking out a bit...
  • Next by thread: Re: A trap with full screen in Lion
  • Index(es):
    • Date
    • Thread