Re: Agent Applications and launchd
Re: Agent Applications and launchd
- Subject: Re: Agent Applications and launchd
- From: Finlay Dobbie <email@hidden>
- Date: Sat, 31 Dec 2005 02:36:24 +0000
On 28/12/05, Joachim <email@hidden> wrote:
>
Keith, I'm currently coding this functionality too, and based on the
>
sample code on http://www.cocoabuilder.com/archive/message/cocoa/
>
2002/7/3/54254, I've successfully installed and unstalled my login
>
item on Tiger with the following piece of code:
..snip..
>
loginItems = (NSMutableArray*) CFPreferencesCopyValue
>
((CFStringRef)
>
@"AutoLaunchedApplicationDictionary", (CFStringRef)
>
@"loginwindow",
>
kCFPreferencesCurrentUser, kCFPreferencesAnyHost);
Don't do this. Instead use the supported, recommended way as showin in
the following Apple sample code:
http://developer.apple.com/samplecode/LoginItemsAE/LoginItemsAE.html
-- Finlay
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden