• 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: Adding something to the current user's login items.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adding something to the current user's login items.


  • Subject: Re: Adding something to the current user's login items.
  • From: Sherm Pendley <email@hidden>
  • Date: Sat, 22 Feb 2003 17:51:05 -0500

On Saturday, February 22, 2003, at 03:41 PM, Dan Bernstein wrote:

What's the best way to add an item (my application's "helper") to the current user's login items?

The system preferences panel does it by setting user defaults in the domain "loginwindow". Do a "defaults read loginwindow" to see what's there - you may want to add an item or two in the system preferences panel first, just to populate the list.

It looks to me like the key "AutoLaunchedApplicationDictionary" in that domain refers to an array, and each item in that array is a dictionary with two keys: "Hide" is a '0' or '1', and determines whether the app will be hidden or visible upon launch, and "Path" is the path to the .app bundle.

See the docs for NSUserDefaults for details on working with the user defaults database.

sherm--

UNIX: Where /sbin/init is Job 1.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Adding something to the current user's login items. (From: Dan Bernstein <cocoa-dev%email@hidden>)

  • Prev by Date: Re: Adding something to the current user's login items.
  • Next by Date: Re: Trouble
  • Previous by thread: Re: Adding something to the current user's login items.
  • Next by thread: Re: Adding something to the current user's login items.
  • Index(es):
    • Date
    • Thread