Re: Programmatically locking user screen
Re: Programmatically locking user screen
- Subject: Re: Programmatically locking user screen
- From: Jens Bauer <email@hidden>
- Date: Wed, 7 Jan 2009 16:16:04 +0100
Hi Jean-Daniel,
Thanks, good comment. Googling for it resultet me in finding...
"The recommended replacement for this function is
CGEventSourceSetLocalEventsFilterDuringSuppressionState."
(Which is for 10.4 and later). I haven't tried it out yet, though.
Love,
Jens
On Jan 7, 2009, at 16:02, Jean-Daniel Dupas wrote:
Le 7 janv. 09 à 14:46, Jens Bauer a écrit :
Hi Ashish,
To save you from going down a path you may have to return from:
I've used CoreGraphics fullscreen mode, however that's probably not
a good approach for you, because if the user is pressing cmd+opt
+escape, then the application just quits.
-So try avoiding that one. =)
Try Jim's solution, and check with cmd+opt+escape. If it works,
it's probably the best way.
Just for the record, you can be evil and disable event to avoid this
(using CGInhibitLocalEvents()), but this is a nasty solution.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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