• 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: Gideon King <email@hidden>
  • Date: Sat, 30 Jul 2011 10:06:23 +1000

Thanks for that suggestion Martin - I hadn't thought of looking at parent window. I kind of think that is an implementation detail behind the scenes that we shouldn't have to worry about in our code, so will file a bug report about it as Corbin suggested, and hopefully it will either be made to return the same window controller as if the window hadn't been swapped out from under you, or the documentation changed to make it very clear of the existence of this issue (to me, the former solution would seem by far the best one).

Regards

Gideon


On 30/07/2011, at 9:44 AM, Martin Wierschin wrote:

>> 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

References: 
 >A trap with full screen in Lion (From: Gideon King <email@hidden>)
 >Re: A trap with full screen in Lion (From: Martin Wierschin <email@hidden>)

  • Prev by Date: Re: Why Don't Cocoa's (Un)Archiving Methods return Errors?
  • 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: didReceivePTPEvent is not triggered with Canon T2i
  • Index(es):
    • Date
    • Thread