Re: Building launchd.plist inside Core Foundation / Cocoa
Re: Building launchd.plist inside Core Foundation / Cocoa
- Subject: Re: Building launchd.plist inside Core Foundation / Cocoa
- From: Eli Bach <email@hidden>
- Date: Thu, 7 Aug 2008 23:02:19 -0700
On Aug 7, 2008, at 9:39 PM, Andrew White wrote:
Before I spend too much effort writing my own, is there an API to
build a launchd.plist file from inside CoreFoundation or Cocoa? Or
even just a list of the key strings as symbolic constants?
Obviously, I can create it manually by building a dictionary and
then calling [NSDictionary writeToFile: ...], but I'm trying to
avoid reinventing (or rewriting?) the wheel. :)
There's only maybe 40 string constants in total supported by launchd
in total (man launchd.plist), and most of Apple's entries only use
maybe 10-15. Just make the dictionaries yourself with either CF or NS
objects. Any API that would expose the full capabilities of launchd
would probably be more complex than just coding up the dictionary
structure yourself, customized to exactly the keys you need.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden