Re: Detecting login/logout?
Re: Detecting login/logout?
- Subject: Re: Detecting login/logout?
- From: j o a r <email@hidden>
- Date: Fri, 31 Oct 2003 20:17:01 +0100
Don't cross post!
One thing you could look at are these two distributed notifications. I
don't know if they are available pre-Panther. I know that they are sent
when you're using fast user switching - but probably for normal
login/logout as well:
[[NSDistributedNotificationCenter defaultCenter] addObserver:
self selector: @selector(didMoveOffConsole:) name:
@"com.apple.sessionDidMoveOffConsole" object: nil];
[[NSDistributedNotificationCenter defaultCenter] addObserver:
self selector: @selector(didMoveOnConsole:) name:
@"com.apple.sessionDidMoveOnConsole" object: nil];
Oh, and I don't think that they are public / documented - so you're a
bad boy if you use them.
j o a r
On 2003-10-31, at 18.56, Steve Herman wrote:
I've been asked to look at the feasibility of writing a utility that
needs to run _alongside_ the login dialog on OS X.
Basically I figure this process (or processes) needs to be launched
via StartupItems and it needs to display it's window whenever the Mac
is sitting waiting for logon, and then hide it's window whenever
someone is logged on.
Can anyone point me to any hints at detecting login/logout or any
other good method of knowing when the Mac's login dialog is onscreen?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.