Hi

I'm trying to to install kEventAppSystemUIModeChanged using NSAppleEventManager, so that my app will know when the menubar & dock is hidden i.e. some other app enters fullscreen mode.

I've tried entering fullscreen mode using VLC and Photoshop.

handleAppleEvent is never called because there is no log output.

Maybe something is missing or the event is never installed, I have no idéa anymore - so its time to ask around.


- (void)handleAppleEvent: (NSAppleEventDescriptor *)event
                withReplyEvent: (NSAppleEventDescriptor *)replyEvent;
{
        NSLog( @"handleAppleEvent called." );
}


- (void)applicationDidFinishLaunching: (NSNotification *)notification
{
NSAppleEventManager *eventManager = [NSAppleEventManager sharedAppleEventManager];
        
        [eventManager setEventHandler: self
                 andSelector: @selector( handleAppleEvent: withReplyEvent: )
                forEventClass: kEventClassApplication
                andEventID: (AEEventID)kEventAppSystemUIModeChanged];
}


Thanks._______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to