Re: Programatically locking user screen

  • What you're talking about is called kiosk mode, and there's
    compromises no matter how you go around it, but if you're intending
    the software for use in an instructional environment where other use
    of the computer shouldn't be vital while your app is running, then the
    impact shouldn't be an issue.
    There are several ways to do this, and to get started, I'd recommend
    reading this apple article.  It's geared towards carbon, but parts of
    it can be applied to cocoa as well, take a look: http://developer.apple.com/technotes/tn2002/tn2062.html#Section3
    Also, here's something from cocoadevcentral that may be of help:
    http://cocoadevcentral.com/articles/000028.php
    Good luck!

    On Jan 6, 2009, at 12:24 AM, Ashish Tiwari wrote:

    > Hi All,
    >
    > How can I lock user screen (using cocoa+objC) that just a quote
    > appears at
    > screen and user can not use their machine until my software unlocks
    > the
    > screen.
    >
    >
    >
    > You might find it rude but that is required as we are developing a
    > training
    > room software and the trainer should we able to lock all student
    > screens so
    > that student can just concentrate on trainingroom black/whiteboard.
    >
    >
    >
    > Lanuching user machine screen saver wont do as the students might
    > unlock the
    > screen saver by entering  password. Is there a way that I can create a
    > screen saver with a random password (not known to students).
    >
    >
    >
    > Thanks in advance.
    >
    >
    >
    > Ashish Tiwari | Software Engineer | Persistent Systems
    >
    > <mailto:<ashish_tiwari...>
    > <ashish_tiwari...>  |
    > Cell: +91 9890276268 | Tel: +91 (712) 3987032
    >
    > Innovation in software product design, development and delivery-
    > <http://www.persistentsys.com> www.persistentsys.com