【发布时间】:2013-08-05 19:08:23
【问题描述】:
什么是 ios'(Ruby 风格)的 OS X 等价物:
@window.rootViewController = NSViewController.alloc.initWithNibName(nil, bundle: nil)
有两个方面:
- 处理 os x 中缺少 rootViewController
- 执行与 initWithNibName(nil, bundle: nil) 等效的操作,但在 os x 上失败
我正在尝试在代码中构建一个窗口(没有 nib)...并遵循 Pragmatic 的 RubyMotion 程序员指南(为 iOS 编写)。
【问题讨论】:
标签: cocoa-touch cocoa rubymotion macruby