I believe what you want is a kiosk environment; see Apple's Technical Note TN2062: Creating Kiosks.
Specifically, you'll want to use -[NSApplication setPresentationOptions:]
; see NSApplicationPresentationOptions
here for possible values.
Question
I am using:
if (CGCaptureAllDisplays() != kCGErrorSuccess) {
To capture the display and secure my app while the user is away, but users have reported, and I have confirmed that pressing simply force quits my app.
How can I stop that behavior?
Solution
I believe what you want is a kiosk environment; see Apple's Technical Note TN2062: Creating Kiosks.
Specifically, you'll want to use -[NSApplication setPresentationOptions:]
; see NSApplicationPresentationOptions
here for possible values.