• 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: Enter/exit full screen notification
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Enter/exit full screen notification


  • Subject: Re: Enter/exit full screen notification
  • From: Lee Ann Rucker <email@hidden>
  • Date: Thu, 20 Oct 2011 12:20:38 -0700

On Oct 20, 2011, at 2:21 AM, Ryan Joseph wrote:

>
> On Oct 20, 2011, at 2:45 PM, Lee Ann Rucker wrote:
>
>> You're trying to see changes made by other apps, right? I don't think you're going to see these notifications, then, and also Lion's fullscreen moves the window into its own special Mission Control Space, so I'd think your window would be left behind on the original Space.
>
> In that case maybe it's not necessary to do anything in 10.7 (at least for apps that implement the new full screen mode). I haven't even tested on 10.7 yet which I'll do soon.
>
>>
>> In 10.6 (and 10.7) it's NSApplication presentationOptions. I've never tried to detect another app's changes to them, though.
>
>
> I did actually read about this. I'm new to Cocoa so I wasn't sure if I was doing it right but the NSApplication docs suggest I can observe the value of currentSystemPresentationOptions. My tests didn't get the method invoked I set to observe but I like I said this could be because the app I was testing (QuickTime Player) didn't enter full screen via NSApplication's presentationOptions. I posted what the docs say at the end. But how to do I know if the app in full screen mode actually uses this API? It doesn't seem reliable even if I did figure out the KVO system in Cocoa correctly.
>
> One other idea is getting a notification if the menu bar was hidden since this usually means an app went into full screen mode but I can't find that notification either.

Pre-Lion, fullscreen just meant making a borderless window that covered a screen; changing the presentationOptions was optional. On Macs with multiple monitors, if the screen being used didn't have the menu or dock there'd be no need to change anything. There's also an NSView fullScreenMode - it wasn't useful for my purposes so I don't know what it affects.

And then an app might have been written pre-10.5 and use SystemUIMode, or even just raise the window level so it was above the menubar._______________________________________________

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: 
 >Re: Enter/exit full screen notification (From: Lee Ann Rucker <email@hidden>)
 >Re: Enter/exit full screen notification (From: Ryan Joseph <email@hidden>)

  • Prev by Date: CD database breaks after lightweight migration?
  • Next by Date: Re: Get my NSDocument-based application out from "Open With" menu?
  • Previous by thread: Re: Enter/exit full screen notification
  • Next by thread: Get my NSDocument-based application out from "Open With" menu?
  • Index(es):
    • Date
    • Thread