• 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
NSWorkspaceDidLaunchApplicationNotification
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSWorkspaceDidLaunchApplicationNotification


  • Subject: NSWorkspaceDidLaunchApplicationNotification
  • From: Olivier Destrebecq <email@hidden>
  • Date: Mon, 3 Jun 2002 15:51:26 -0500

I register one of my object in its init method for several notification, one of which is NSWorkspaceDidLaunchApplicationNotification.

I get the notification for the other, but not for that one.
I launch a specific app when my app start up and i need to know when it is up and running so that i can start sending event to it.

I read that i'm supposed to get a notification for any app that is launched, but no matter what app i launch i don't get any. So i guess i missed something.

Any pointers appreciated.

olivier

here is my init method:
- (id) init
{
self = [super init];

//register for notification from the app
//
[[NSNotificationCenter defaultCenter] addObserver: self selector: @selector(launchComManager) name: NSApplicationDidFinishLaunchingNotification object: nil];
[[NSNotificationCenter defaultCenter] addObserver: self selector: @selector(quitComManager) name: NSApplicationWillTerminateNotification object: nil];


//register for the notification that let me know that the com manager is running so that i can
//send the event to the app so that it gets the calc
//
[[NSNotificationCenter defaultCenter] addObserver: self selector: @selector(comManagerLaunched) name: NSWorkspaceDidLaunchApplicationNotification object: nil];

return self;
}

and the prototype of the message that is supposed to be called:
- (void) comManagerLaunched;
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: NSWorkspaceDidLaunchApplicationNotification
      • From: Douglas Davidson <email@hidden>
  • Prev by Date: Re: Cocoa programming book question
  • Next by Date: Re: NSWorkspaceDidLaunchApplicationNotification
  • Previous by thread: Re: Getting started in OpenGL programming?
  • Next by thread: Re: NSWorkspaceDidLaunchApplicationNotification
  • Index(es):
    • Date
    • Thread