checking status of a background app in a Cocoa program
checking status of a background app in a Cocoa program
- Subject: checking status of a background app in a Cocoa program
- From: Donald Hall <email@hidden>
- Date: Sun, 23 Sep 2007 23:58:53 -0600
I want my main (Cocoa-based) application to track the status of a
background application - i.e. to notice when the background
application starts and stops. NSWorkspace won't work for background
applications. I have a Carbon application that does the monitoring
just fine (based on the ObserveProcessLife Carbon example). Can I
integrate the functionality of this program into my Cocoa program?
Basically, the Carbon app registers launch and terminate functions in
main.c that are called at the right times. Can I just link to Carbon
as well as Cocoa and do the same thing in my main function, or does
the Carbon example rely in the Carbon event loop running (or on some
other aspect of Carbon programs.) Or is there another way to do this
monitoring without continual polling (ugh)?
Thanks for any pointers,
Don
--
Donald S. Hall, Ph.D.
Apps & More Software Design, Inc.
email@hidden
http://www.appsandmore.com
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden