How to get notification of rerun application

Discussion in 'Mac Programming' started by DeDMakar, Nov 18, 2008.

  1. DeDMakar macrumors member

    Joined:
    Mar 24, 2008
    #1
    How to get notification of rerun application that is namely being started from the icon? Because the program is automatically started upon OS log.
     
  2. satyam90 macrumors regular

    satyam90

    Joined:
    Jul 30, 2007
    Location:
    Bangalore, India
    #2
    Use named mutex objects.
    First create a named musted object as the first step in ur application. Check if mutex already available or not. Handle it accordingly.
     
  3. DeDMakar thread starter macrumors member

    Joined:
    Mar 24, 2008
    #3
    Can you give an example or a link to the documentation? Thank you.
     
  4. kainjow Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #4
    Are you trying to get notifications of when another application launches?
     
  5. DeDMakar thread starter macrumors member

    Joined:
    Mar 24, 2008
    #5
    No. The program starts up automatically upon system logon, and the icon appears in the system tray (near clock). A user may not notice the icon , thus he/she starts the program manually, and then pops up program's main window.
     
  6. lee1210 macrumors 68040

    lee1210

    Joined:
    Jan 10, 2005
    Location:
    Dallas, TX
    #6
  7. DeDMakar thread starter macrumors member

    Joined:
    Mar 24, 2008
    #7

Share This Page