NSWorkspaceDidLaunchApplicationNotification
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.