title: NSRect Size to Fill Screen
body: <p>How do i get the current size of the screen no matter the resolution change in xcode so that i can adjust my NSRect size to be maximized or take up the screen according to the resolution ? What do I need to add?  Would it be something to the NSWindow? </p>
  
  <pre><code> NSRect panelRect = [[self window] frame];
      panelRect.size.height = _HEIGHT;
      panelRect.size.width = _WIDTH;
      panelRect.origin.x = 0;
      panelRect.origin.y = 0;
      [[self window] setFrame:panelRect display:NO];
  </code></pre>
  
  <p>Thanks!</p>