Re: checking status of a background app in a Cocoa program
Re: checking status of a background app in a Cocoa program
- Subject: Re: checking status of a background app in a Cocoa program
- From: Thomas Engelmeier <email@hidden>
- Date: Mon, 24 Sep 2007 12:33:01 +0200
On 24.09.2007, at 07:58, Donald Hall wrote:
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.)
UI parts of Carbon rely on it, which doesn't make it mutually exclusive.
I'd guess for your purpose you should be able to get away with
CarbonCore, and that's safe to use under nearly all application types
(also daemons et al).
Or is there another way to do this monitoring without continual
polling (ugh)?
Mach messaging, AppleEvents, distributed objects, network sockets,
pipes - just as some starting points.
Regards,
Tom_E
_______________________________________________
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