Login Logout hook for MAC

Discussion in 'Mac Programming' started by saqibjaan, Sep 8, 2012.

  1. saqibjaan macrumors member

    Joined:
    Feb 1, 2012
    Location:
    Lahore
    #1
    I want to know that is it possible to hook login logout event in Mac OSX. Is there any API or framework available for this?

    Regards
    Saqib
     
  2. chown33, Sep 8, 2012
    Last edited: Sep 8, 2012

    chown33 macrumors 604

    Joined:
    Aug 9, 2009
    #2
    What have you tried?

    I found this with only a few seconds effort:
    Customizing Login and Logout

    Found using google search terms:
    login logout site:developer.apple.com

    This performs a site-specific search of developer.apple.com for keywords login and logout.

    That link is also the second result in a google search for Login logout hook for MAC, which is simply the title of your thread.
     
  3. saqibjaan thread starter macrumors member

    Joined:
    Feb 1, 2012
    Location:
    Lahore
    #3
    Thanks for reply. I have already explored this page which you mentioned.

    I have also go through NSWorkspace framework which handle some events like user switching and Mac sleep and wake events. I just want to know that is there any framework available for login/logout events.

    The link you mentioned is using scripts.

    Regards
    Saqib
     

Share This Page