Search code examples
objective-cmacoscocoamacos-carbon

Preventing the user from logging out or shutting down


I'm developing a Mac OS application and one of the requirements is that this application blocks the user from logging out or shutting down the machine if the user has not finished some tasks within the application. Is it possible to achieve this with Cocoa or Carbon? If so, how could I implement such functionality?

Thank you


Solution

  • This can be achieved with Kiosk mode (documentation). Note that there are often ways around it.