getting the app name of an app that quits
getting the app name of an app that quits
- Subject: getting the app name of an app that quits
- From: email@hidden
- Date: Sat, 30 Aug 2003 14:35:30 -0400
i need to know when a certain program quits. so far, i register with
the notification center to find out when an app quits
...
CurrentAppsSharedWorkspace = [NSWorkspace sharedWorkspace];
WorkspaceNotificationCenter = [CurrentAppsSharedWorkspace
notificationCenter];
[WorkspaceNotificationCenter addObserver:self
selector:@selector(gameOver:)
name:@"NSWorkspaceDidTerminateApplicationNotification"
object:nil];
...
and gameOver: gets called fine and all but i need to know the
applications name to filter them out. any ideas how i can do this?
object is the only method in nsnotification i see that could help but
what would it return in my case?
thanks
_______________________________________________
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.