• 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
Waiting for a Cocoa app to die...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Waiting for a Cocoa app to die...


  • Subject: Waiting for a Cocoa app to die...
  • From: "Mike T. Miller" <email@hidden>
  • Date: Fri, 21 Nov 2003 15:07:19 -0800

I'm trying to build a command line tool that will wait for a given application to terminate (needed for some scripting). I'm new to Cocoa, so I'm sure I'm missing something obvious.

I've tried building a Foundation tool that registers with NSNotificationCenter for NSWorkspaceDidTerminateApplicationNotification, but that isn't working (I suspect the workspace's notificationcenter only has real meaning within a run loop).

'open' doesn't help since it doesn't wait for the application to terminate.

Any ideas?

--
Mike T. Miller
Sr. Java Architect, NorCal Software Services
Sun Microsystems, Inc.
_______________________________________________
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: Waiting for a Cocoa app to die...
      • From: "Mike T. Miller" <email@hidden>
  • Prev by Date: Re: Controls, stringValue, custom NSFormatter and error pointing to 0
  • Next by Date: Re: allocate a 2d array of floats?
  • Previous by thread: Re: copying an object instance using NSCopyMemoryPages
  • Next by thread: Re: Waiting for a Cocoa app to die...
  • Index(es):
    • Date
    • Thread