title: How to set up Kiosk Mode for Mac apps?
body: <p>I am trying to make the application startup in a presentation mode while disabling the Dock, Menubar, Processes Switching, etc. I have this code so far:</p>
  
  <pre><code>let presOptions: NSApplicationPresentationOptions =
          .HideDock                  |   // Dock is entirely unavailable. Spotlight menu is disabled.
      //  .AutoHideMenuBar           |   // Menu Bar appears when moused to.
      //  .DisableAppleMenu          |   // All Apple menu items are disabled.
          .DisableProcessSwitching   |   // Cmd+Tab UI is disabled. All Exposé functionality is also disabled.
          .DisableForceQuit          |   // Cmd+Opt+Esc panel is disabled.
          .DisableSessionTermination |   // PowerKey panel and Restart/Shut Down/Log Out are disabled.
          .DisableHideApplication    |   // Application "Hide" menu item is disabled.
      //  .AutoHideToolbar           |
          .FullScreen
  
  let optionsDictionary = [NSFullScreenModeApplicationPresentationOptions: presOptions]
  
  browserWindowController.containerView.enterFullScreenMode(NSScreen.mainScreen()!, withOptions: optionsDictionary)
  </code></pre>
  
  <p>On the .HideDock line I get the error: </p>
  
  <blockquote>
    <p>Type of expression is ambiguous without more context</p>
  </blockquote>
  
  <p>Could somebody help me find a solution for that and explain what the error means. </p>
  
  <p>Also on the browserWindowController line I get the error:</p>
  
  <blockquote>
    <p>Use of unresolved identifier 'browserWindowController'</p>
  </blockquote>
  
  <p>Could somebody explain to me why this isn't working?</p>