• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Detecting login/logout?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Detecting login/logout? (From: Steve Herman <email@hidden>)

  • Prev by Date: Re: Transparent Windows are Opaque to Classic
  • Next by Date: Re: XCodBuild Q not answered in docs or FAQ
  • Previous by thread: Detecting login/logout?
  • Next by thread: Re: Detecting login/logout?
  • Index(es):
    • Date
    • Thread