title: How to write Cocoa NSWindow code in C++ syntax?
body: <p>I have following code in a .mm file:</p>
  
  <pre><code>NSRect mainDisplayRect;// = [[NSScreen mainScreen] frame];
      mainDisplayRect.origin.x = x;
      mainDisplayRect.origin.y = y;
      mainDisplayRect.size.width = width;
      mainDisplayRect.size.height = height;
      NSWindow *fullScreenWindow = [[NSWindow alloc] initWithContentRect: mainDisplayRect styleMask: NSBorderlessWindowMask backing:NSBackingStoreBuffered defer:YES];
  </code></pre>
  
  <p>Could someone please help especially regarding how to initialize <strong>fullScreenWindow</strong> pointer as according to c++ syntax, just simply need conversion in C++ syntax. Or will this compile successfully even with C++ compiler(i.e when written as it is in .cpp file, without any modification.). I don't know much about objective-C code syntax. Please help.</p>