Re: XQuartz - sudden flips out of full-screen mode?
Re: XQuartz - sudden flips out of full-screen mode?
- Subject: Re: XQuartz - sudden flips out of full-screen mode?
- From: Ken Thomases <email@hidden>
- Date: Wed, 16 May 2012 00:51:49 -0500
Has anybody considered making a small application which monitors NSWorkspaceDidActivateApplicationNotification and logs which application was activated when? Perhaps that would identify the culprit directly.
Starting with the basic application template in Xcode, just replace the app delegate code with the following:
- (void) logActive:(NSNotification*)note
{
NSRunningApplication* active = [[note userInfo] objectForKey:NSWorkspaceApplicationKey];
NSLog(@"Activated %@", active.localizedName);
}
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
{
NSNotificationCenter* nc = [[NSWorkspace sharedWorkspace] notificationCenter];
[nc addObserver:self selector:@selector(logActive:) name:NSWorkspaceDidActivateApplicationNotification object:nil];
}
(For what it's worth, I tried using the block-based observer API, but it didn't work. May be a bug in NSWorkspace's notification center.)
Cheers,
Ken
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden