LICENSE.txt for this sample’s licensing information
The `ViewController` class is a subclass to NSViewControllerreturn nil}
class ViewController: NSViewController, NSCollectionViewDelegate {
我已经将NSViewController子类化,并将IBOutlets连接到辅助nib中的NSButton中。我可以实例化NSViewController并在NSMenu中应用视图--它工作得很好--但是如何访问按钮来更改其标题呢?因为NSViewController有IBOutlets,所以我假设我会通过控制器来做这件事。//this part works great
NSViewController *viewController = [[toDoViewController alloc] init