• 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: Programmatically locking user screen
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Programmatically locking user screen (From: "Ashish Tiwari" <email@hidden>)
 >Re: Programmatically locking user screen (From: Jim Dusseau <email@hidden>)
 >Re: Programmatically locking user screen (From: Jens Bauer <email@hidden>)
 >Re: Programmatically locking user screen (From: Jean-Daniel Dupas <email@hidden>)

  • Prev by Date: Re: Cocoa Client/Server App
  • Next by Date: Re: feed an NSCharacterSet to numberOfRowsInSection delegate method?
  • Previous by thread: Re: Programmatically locking user screen
  • Next by thread: Re: Programmatically locking user screen
  • Index(es):
    • Date
    • Thread