Storyboard doesn't contain a controller with identifier 'MainWindow'

前端 未结 2 785
野的像风
野的像风 2021-01-12 01:17

I am trying to instantiate an NSWindowController from a storyboard in my OS X app:

NSWindowController *mainWindowController = [[NSStoryboard story

相关标签:
2条回答
  • 2021-01-12 02:00

    Confirmed in 11.3. This is such a time-waster, together with this one:

    How do I open another window in macOS in Swift with Cocoa

    0 讨论(0)
  • 2021-01-12 02:08

    It was definitely a bug with Xcode. Restarting Xcode solved the problem.

    0 讨论(0)
提交回复
热议问题