• 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 login items
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adding something to the login items


  • Subject: Re: Adding something to the login items
  • From: Nick Zitzmann <email@hidden>
  • Date: Sun, 13 Apr 2003 05:33:46 -0700

On Sunday, April 13, 2003, at 04:25 AM, Arthur VIGAN wrote:

how can my application add something to the login items in the system preferences?

The preference is stored inside ~/Library/Preferences/loginwindow.plist, inside an array called "AutoLaunchedApplicationDictionary" and you can interact with this array by loading the persistent domain "loginwindow" through NSUserDefaults.

"AutoLaunchedApplicationDirectory" is an array of dictionary objects, with each dictionary having at least two keys: "Path", which is the path to the object, and "Hide", which is a boolean value that determines whether the system hides the application when launching it or not. There's also a third key, "AliasData", which I think is an alias record that allows the loginwindow task to find the file if it's been moved and you're using an HFS/HFS+ disk. I'm pretty sure this is optional.

So you can just add a new dictionary object with the appropriate objects and keys filled out, and put that into the array. That said, please ask the user before making changes to this preference...

Nick Zitzmann
AIM/iChat: dragonsdontsleep
Check out my software page: http://dreamless.home.attbi.com/

"Building the future and keeping the past alive are one and the same thing." - Metal Gear Solid 2
_______________________________________________
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.
  • Follow-Ups:
    • Re: Adding something to the login items
      • From: Arthur VIGAN <email@hidden>
    • Re: Adding something to the login items
      • From: Arthur VIGAN <email@hidden>
References: 
 >Adding something to the login items (From: Arthur VIGAN <email@hidden>)

  • Prev by Date: [NSMenuItem setImage:] not working 4 dock menu ?
  • Next by Date: Re: Access NetCDF library
  • Previous by thread: Adding something to the login items
  • Next by thread: Re: Adding something to the login items
  • Index(es):
    • Date
    • Thread