title: Set NSWindow as full width and height not working
body: <p>I'm using a simple app boilerplate here:
  <a href="https://github.com/hiven/WebViewFinagler" rel="nofollow">https://github.com/hiven/WebViewFinagler</a></p>
  
  <p>It just opens google on load. I've compiled it and it works fine but it opens in a very small window (480 x480). I can see a side menu in x-code but it only allows me to set the position of the window and the size of the window in pixels. </p>
  
  <p>However, I want this to take up the whole screen (not fullscreen) - but I also don't want to hardcode the resolution of my mac into it because I want it to work on laptops with different screen resolutions. </p>
  
  <p>It won't let me put in 100% in the width and height, so how do I make this app open and take up the full available screen area?</p>
  
  <p>In my code I have this, but it doesn't work, the app just starts small in the bottom corner:</p>
  
  <p>MDAppDelegate.m</p>
  
  <pre><code>#import "MDAppDelegate.h"
  #import &lt;WebKit/WebKit.h&gt;
  
  
  @implementation MDAppDelegate
  
  - (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
      NSWindow* myWindow; //Your window object to maximize
      [myWindow setFrame:[[NSScreen mainScreen] visibleFrame] display:YES];
      NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"https://www.google.com/"]];
      [self.webView.mainFrame loadRequest:request];
  }
  
  @end
  </code></pre>