• 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: launching application after reboot
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: launching application after reboot


  • Subject: Re: launching application after reboot
  • From: Ken Thomases <email@hidden>
  • Date: Thu, 17 Dec 2009 17:54:09 -0600

On Dec 17, 2009, at 1:43 PM, Jean-Daniel Dupas wrote:

> Le 17 déc. 2009 à 20:24, Jens Alfke a écrit :
>
>> The right thing to do is to add the app as a login item, and then when the app launches, have it remove itself. (Is there an official API yet for manipulating login items, or do you still have to mess with a .plist?)
>
> There is since 10.5. The Shared File List API in Launch Services. Search the headers for documentation and have a look at System Startup Programming Topics (in Customizing Login and Logout)

And prior to 10.5, you shouldn't have been mucking with the .plist (or even going through NSUserDefaults or CFPreferences).  See the following Apple sample code for the pre-10.5 technique:

http://developer.apple.com/mac/library/samplecode/LoginItemsAE/index.html

Cheers,
Ken

_______________________________________________

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

References: 
 >launching application after reboot (From: Arun <email@hidden>)
 >Re: launching application after reboot (From: Kyle Sluder <email@hidden>)
 >Re: launching application after reboot (From: Jens Alfke <email@hidden>)
 >Re: launching application after reboot (From: Jean-Daniel Dupas <email@hidden>)

  • Prev by Date: Re: NSAttributedString fill with gradient
  • Next by Date: Re: Diacritics in Thai
  • Previous by thread: Re: launching application after reboot
  • Next by thread: Re: launching application after reboot
  • Index(es):
    • Date
    • Thread