• 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
Knowing when application terminates...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Knowing when application terminates...


  • Subject: Knowing when application terminates...
  • From: Albert Atkinson <email@hidden>
  • Date: Thu, 18 Jul 2002 12:17:07 -0500

I looked all over the documentation and can not find anything that does what I want. What I have is a timer that fires every few seconds that will check to see if a specific application is open, if not it will open it, here is the basic structure of what I am needing:

if ( APP IS NOT RUNNING ) {
[[NSWorkspace sharedWorkspace] launchApplication: @"APP NAME"];
}

I was looking at the notification NSWorkspaceDidTerminateApplicationNotification but can not figure our how I would use it to for this code.

Any sample code would be appreciated greatly =)

Albert
_______________________________________________
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: Knowing when application terminates...
      • From: Philip George <email@hidden>
    • Re: Knowing when application terminates...
      • From: Philip George <email@hidden>
    • Re: Knowing when application terminates...
      • From: Finlay Dobbie <email@hidden>
  • Prev by Date: Re: NSStatusItem with no menu triggers menu tracking (repost)
  • Next by Date: Re: (no subject)
  • Previous by thread: Problem with sheet when app hidden
  • Next by thread: Re: Knowing when application terminates...
  • Index(es):
    • Date
    • Thread