Re: Detecting login/logout?
Re: Detecting login/logout?
- Subject: Re: Detecting login/logout?
- From: Scott Ellsworth <email@hidden>
- Date: Sun, 2 Nov 2003 22:45:04 -0800
On Nov 1, 2003, at 12:14 PM, Ryan McGann 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?
He can write a StartupItem, which don't ever die except when the
computer is restarted, but they could not show UI using Carbon/AppKit
(you can show some minimal UI using CFUserNotification).
It would be easier to create daemons like this, though, if startup
items were called at shutdown to give them a chance to close databases,
release connections, sync files, and good stuff like that.
An alternative "Shutdown Items" mechanism would also solve this problem
for me.
(Bug filed - file another if you want to show Apple we care.)
Scott
_______________________________________________
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.