How can i start my application whenever MAC Machine started?

Discussion in 'Mac Programming' started by newformac, May 24, 2011.

  1. macrumors regular

    Joined:
    May 24, 2011
    #1
    Hi all,

    please help me how can i start my application whenever MAC Machine started?

    thanks in advance.
     
  2. macrumors 68000

    LeeTom

    Joined:
    May 31, 2004
    #2
    right-click (or hold control and click) on the application in the dock, select options, and choose "open at login".
     
  3. thread starter macrumors regular

    Joined:
    May 24, 2011
    #3
    how can set this programmatically?
     
  4. jiminaus, May 25, 2011
    Last edited: May 25, 2011

    macrumors 65816

    jiminaus

    Joined:
    Dec 16, 2010
    Location:
    Sydney
    #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?
     
  5. thread starter macrumors regular

    Joined:
    May 24, 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.
     
  6. macrumors 6502a

    Joined:
    Apr 1, 2007
    #6
    Do you want it on any machine it's run on or just your own?
     
  7. thread starter macrumors regular

    Joined:
    May 24, 2011
    #7
    on any machine on which my application running.
     
  8. macrumors 6502a

    Joined:
    Apr 1, 2007
    #8
  9. newformac, May 28, 2011
    Last edited by a moderator: Jun 9, 2011

    thread starter macrumors regular

    Joined:
    May 24, 2011
    #9
    thanks its done now.
     

Share This Page