What would be the OS X equivalent of ios' (Ruby style) :
@window.rootViewController = NSViewController.alloc.initWithNibName(nil, bundle: nil)
There are two aspects :
- dealing with the absence of rootViewController in os x
- doing the equivalent of initWithNibName(nil, bundle: nil), that fails on os x
I'm trying to build a window in code (without nib)... and follow along Pragmatic's Programmer Guide to RubyMotion (written for iOS).