Re: Enter/exit full screen notification
Re: Enter/exit full screen notification
- Subject: Re: Enter/exit full screen notification
- From: lowell <email@hidden>
- Date: Thu, 20 Oct 2011 00:22:13 -0700
Yup. Here are two different ways:
/System/Library/Frameworks/AppKit.framework/Versions/C/Headers/NSWindow.h @757:
- (void)windowWillEnterFullScreen:(NSNotification *)notification NS_AVAILABLE_MAC(10_7);
- (void)windowDidEnterFullScreen:(NSNotification *)notification NS_AVAILABLE_MAC(10_7);
- (void)windowWillExitFullScreen:(NSNotification *)notification NS_AVAILABLE_MAC(10_7);
- (void)windowDidExitFullScreen:(NSNotification *)notification NS_AVAILABLE_MAC(10_7);
/System/Library/Frameworks/AppKit.framework/Versions/C/Headers/NSWindow.h @791:
APPKIT_EXTERN NSString * const NSWindowWillEnterFullScreenNotification NS_AVAILABLE_MAC(10_7);
APPKIT_EXTERN NSString * const NSWindowDidEnterFullScreenNotification NS_AVAILABLE_MAC(10_7);
APPKIT_EXTERN NSString * const NSWindowWillExitFullScreenNotification NS_AVAILABLE_MAC(10_7);
APPKIT_EXTERN NSString * const NSWindowDidExitFullScreenNotification NS_AVAILABLE_MAC(10_7);
--lowell
On Oct 19, 2011, at 10:01 PM, Ryan Joseph wrote:
> Is there an effective way to be notified when the system goes into full screen mode (on 10.6 and 10.7)? The only information I found on Google was from 2005 and earlier including Carbon event handlers which are deprecated now.
>
> I ask because I have a user agent app (which floats above all windows) that needs to be hidden when any app goes into full screen, otherwise my window will cover the full screen app.
>
> Thanks for any ideas.
>
> Regards,
> Ryan Joseph
> thealchemistguild.com
>
> _______________________________________________
>
> 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
_______________________________________________
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