• 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
getting the app name of an app that quits
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: getting the app name of an app that quits
      • From: Scott Anguish <email@hidden>
  • Prev by Date: Re: How to make service/demon in OS X
  • Next by Date: Re: How to make service/demon in OS X
  • Previous by thread: Re: Localizing currencies?
  • Next by thread: Re: getting the app name of an app that quits
  • Index(es):
    • Date
    • Thread