In Mac OS X 10.5 Apple added a new set of API’s for adding an application to the users login items in Cocoa.
In looking for the way to use this new API, I stumbled upon Justin Williams’ blog carpeaqua.com where Justin was nice enough to put together a code example project showing just how to use this new API.
You can grab the sample project at his public code repository http://secondgear-public.googlecode.com/svn/trunk/SGLaunchAtLogin/
Thanks again to Justin for making this available.
Hopefully this page helps with his Google position for people searching for this info.
Read his full post at: http://log.carpeaqua.com/post/27727810/adding-an-application-to-login-items-in-mac-os-x
