Ok, hopefully this is a helpful answer.
First, I'm going to discuss the difference in the development of the underlying application between iOS and Mac and continue to work with NSWindowController, and then try to explain why you caused unexpected behavior!
Differences between iOS and Mac
Nibs
, - Mac ( iOS), UIApplicationMain AppKit; NSApplicationMain; . iOS UIApplication UIApplicationDelegate , Mac NSApplication NSApplicationDelegate. , AppDelegate, NSApplication. Info.plist NSPrincipalClass, , NSApplication . , . Info.plist NSMainNibFile, , nib. :
- : . ,
AppDelegate ( PREFIXAppDelegate). , nib , NSApplication. - :
NSFontManager Mac. , UX . - : , . - , , .
? iOS, , , . , . , Mac , . , , ( ) mac ( - ). , Mac NSMainNibFile, nib!
"ya ya, , nibs, ew!" . , , , ! !
, , , NSPrincipalClass Info.plist . -init *, NSApplication . , ( , nib). , NSApplication ( POV ), ( ). , , , NSApplicationDidFinishLaunchingNotification ..
NSWindowController
(, , ). , NSWindowController, -showWindow:.
, NSWindowController, " nib" ( ). , NSWindowController , , ( , - , !)! , " " , .
Apple docs " , , , ".
, ? ( , ). Anywho, , , (, -init) /.
?
, MainMenu.nib, . , . - . nib, , // ( , , , ).
-showWindow:, [windowController.window toggleFullscreen:nil]. , ( ).
, , (IMO great looking). Mac-, , :
- . iOS, , . , NSView backgroundColor, , , ,
-drawRect: ( , //, ). - ? NSViews Mac CALayer . ,
-setWantsLayer:YES NSView, . YES - (BOOL)wantsLayer , . NSView , - (BOOL)wantsUpdateLayer, - (void)updateLayer - (void)drawrect:(NSRect)r . - . , iOS. , UIKit - . , AppKit Mac , -, . , , , , , , . , , !
EDIT: . Mac this!
* , 10.7/8, 10.9
: ( , - ), , . , !