Re: Adding something to the login items
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.