Waiting for a Cocoa app to die...
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.