notification on screensaver unlock ?
notification on screensaver unlock ?
- Subject: notification on screensaver unlock ?
- From: Will Norris <email@hidden>
- Date: Fri, 19 Jan 2007 12:06:05 -0800
hi all... I'm trying to emulate the "Lock Screen" item in Keychain
Access's Menu Extra, but am having a little trouble determining when
the screen has been successfully unlocked. (yes, I know there are a
number of utilities and methods for locking the screen, but none
behave like Keychain.menu). The basic process is:
- get the user's current "askForPassword" preference from
ScreenSaverDefaults
- set askForPassword to 1
- start screen saver
- when screen saver ends (after successful authentication) return
askForPassword back to what the user originally had.
This last step is the only problem... how can I determine when the
screen has been unlocked? At first I tried listening for the
com.apple.screensaver.didstop notifcation. The problem there is that
the screensaver stops (and sends the notification) whenever the login
box is displayed, regardless of whether the authentication was
successful or not. There are no other notifications being sent.
class-dump on the menu extra reveals only
- (void)_lockScreenMenuHit:(id)fp8;
but no indication of what is happening inside of there.
Any thoughts on determining successful login?
Thanks,
Will
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden