• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Agent Applications and launchd
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: Agent Applications and launchd (From: Joachim <email@hidden>)

  • Prev by Date: Re: Memory Management, A Working Example of My Question
  • Next by Date: Re: Re: Agent Applications and launchd
  • Previous by thread: Re: Agent Applications and launchd
  • Next by thread: Re: Re: Agent Applications and launchd
  • Index(es):
    • Date
    • Thread