Knowing when application terminates...
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.