Search code examples
swiftmacoscocoansviewcontroller

disable launchpad capabilities in OS X cocoa


Is there a way to disable the launchpad (3 finger slide) ability while an cocoa application is running? I am trying to make it harder for them to go elsewhere or do something different while the current application is running. I know that they still have other ways, but I just want to discourage it.


Solution

  • To prevent the user from switching applications in general (not just using Launchpad), use the NSApplicationPresentationDisableProcessSwitching flag for the + [NSApp setPresentationOptions:] method.

    More information is available in Apple's Kiosk Mode Technical Note.