There are two nice implementations on github. If you want you app to be sandboxed you got to use the more complicated aproach with a helper application
Take a look at the code and documentation: https://github.com/Mozketo/LaunchAtLoginController (not sandbox compatible) https://github.com/alexzielenski/StartAtLoginController (sanboxable) -Michael ___m i c h a e l s t a r k e____ geschäftsführer HicknHack Software GmbH www.hicknhack-software.com ___k o n t a k t____ +49 (170) 3686136 [email protected] ___H i c k n H a c k S o f t w a r e G m b H____ geschäftsführer - maik lathan | andreas reischuck | michael starke bayreuther straße 32 01187 dresden amtsgericht dresden HRB 30351 sitz - dresden On 15.12.2012, at 17:38, Nick <[email protected]> wrote: > Hi > I am writing a simple status-bar application. I would like it to launch > automatically, whenever the OS starts (basically, like Dropbox behaves - > after being opened for the first time, it adds itself to 'autorun', and > stays there until the user moves Dropbox.app from /Applications into Trash > bin). > > What is the right way to make such an app autostart? > Thank you > _______________________________________________ > > Cocoa-dev mailing list ([email protected]) > > 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: > https://lists.apple.com/mailman/options/cocoa-dev/michael.starke%40hicknhack-software.com > > This email sent to [email protected] _______________________________________________ Cocoa-dev mailing list ([email protected]) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
