• 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
Re: A trap with full screen in Lion
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: A trap with full screen in Lion
      • From: Gideon King <email@hidden>
References: 
 >A trap with full screen in Lion (From: Gideon King <email@hidden>)

  • Prev by Date: Re: toolbars & toolbar items in lion
  • Next by Date: Re: Why Don't Cocoa's (Un)Archiving Methods return Errors?
  • Previous by thread: Re: A trap with full screen in Lion
  • Next by thread: Re: A trap with full screen in Lion
  • Index(es):
    • Date
    • Thread