Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

saqibjaan

macrumors member
Original poster
Feb 1, 2012
48
1
Lahore
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
 
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.
 
Last edited:
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
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.