title: How to make a Mac OSX Cocoa application fullscreen?
body: <p>I have been trying to make my Mac application enter fullscreen now for a while but can't get it to work. According to the Apple developer center, I should use <a href="http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/ApplicationKit/Classes/NSView_Class/Reference/NSView.html#//apple_ref/occ/instm/NSView/enterFullScreenMode:withOptions:" rel="noreferrer">enterFullScreenMode:withOptions:</a> which gives me, method enterFullScreenMode not found.</p>
  
  <p>Everywhere I google there seems to be people having issues with making their app fullscreen, so what is the way to make it work?</p>
  
  <p>Edit:</p>
  
  <p>Of course <code>enterFullScreenMode</code> is for the <code>NSView</code> and I used it on a <code>NSWindow</code>; it's not the view I want to have fullscreen, but the window. I can't find any function for the <code>NSWindow</code> though.</p>