• 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: XQuartz - sudden flips out of full-screen mode?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: XQuartz - sudden flips out of full-screen mode?
      • From: Brandon Allbery <email@hidden>
    • Re: XQuartz - sudden flips out of full-screen mode?
      • From: Lars-Johan Liman <email@hidden>
References: 
 >XQuartz - sudden flips out of full-screen mode? (From: Lars-Johan Liman <email@hidden>)
 >Re: XQuartz - sudden flips out of full-screen mode? (From: Tom Lane <email@hidden>)
 >Re: XQuartz - sudden flips out of full-screen mode? (From: Jeremy Huddleston <email@hidden>)
 >Re: XQuartz - sudden flips out of full-screen mode? (From: Lars-Johan Liman <email@hidden>)
 >Re: XQuartz - sudden flips out of full-screen mode? (From: Jeremy Huddleston <email@hidden>)

  • Prev by Date: Re: XQuartz - sudden flips out of full-screen mode?
  • Next by Date: Re: XQuartz - sudden flips out of full-screen mode?
  • Previous by thread: Re: XQuartz - sudden flips out of full-screen mode?
  • Next by thread: Re: XQuartz - sudden flips out of full-screen mode?
  • Index(es):
    • Date
    • Thread