N newformac macrumors regular Original poster May 24, 2011 107 0 May 24, 2011 #1 Hi all, please help me how can i start my application whenever MAC Machine started? thanks in advance.
Hi all, please help me how can i start my application whenever MAC Machine started? thanks in advance.
LeeTom macrumors 68000 May 31, 2004 1,587 301 May 24, 2011 #2 right-click (or hold control and click) on the application in the dock, select options, and choose "open at login".
right-click (or hold control and click) on the application in the dock, select options, and choose "open at login".
N newformac macrumors regular Original poster May 24, 2011 107 0 May 25, 2011 #3 how can set this programmatically?
jiminaus macrumors 65816 Dec 16, 2010 1,449 1 Sydney May 25, 2011 #4 There are multiple ways depending on your need. Generally the System Startup Programming Topics guide will tell you how. Does your application show a user interface, or is it a background daemon? Do you need it to start whenever Mac OS X starts, or just when there's a user logged in? What do you want to happen in the face of fast user switching? One instance of your program for all users, or an instance per user logged in. Which versions of Mac OS X do you need to support? Last edited: May 25, 2011
There are multiple ways depending on your need. Generally the System Startup Programming Topics guide will tell you how. Does your application show a user interface, or is it a background daemon? Do you need it to start whenever Mac OS X starts, or just when there's a user logged in? What do you want to happen in the face of fast user switching? One instance of your program for all users, or an instance per user logged in. Which versions of Mac OS X do you need to support?
N newformac macrumors regular Original poster May 24, 2011 107 0 May 25, 2011 #5 My application have user interface and its running in hide mode. i just want to start my application whenever mac os machine will started or new user login. currently my application have an instance per user logged in. i want maximum version of mac os are supported. please help me for this. thanks in advance.
My application have user interface and its running in hide mode. i just want to start my application whenever mac os machine will started or new user login. currently my application have an instance per user logged in. i want maximum version of mac os are supported. please help me for this. thanks in advance.
H Hansr macrumors 6502a Apr 1, 2007 897 1 May 25, 2011 #6 Do you want it on any machine it's run on or just your own?
N newformac macrumors regular Original poster May 24, 2011 107 0 May 25, 2011 #7 on any machine on which my application running.
H Hansr macrumors 6502a Apr 1, 2007 897 1 May 25, 2011 #8 If it installs via installer and then runs silently all the time set it to also install a launchagent: http://developer.apple.com/library/...emStartup/Articles/LaunchOnDemandDaemons.html
If it installs via installer and then runs silently all the time set it to also install a launchagent: http://developer.apple.com/library/...emStartup/Articles/LaunchOnDemandDaemons.html
N newformac macrumors regular Original poster May 24, 2011 107 0 May 28, 2011 #9 thanks its done now. Last edited by a moderator: Jun 9, 2011