NSWindowController windowDidLoad not called

前端 未结 4 1957
独厮守ぢ
独厮守ぢ 2020-12-14 11:50

I have a simple Cocoa app using a NSWindowController subclass. In the nib I have set:

  • File Owner\'s class to my NSWindowController subclass
  • The \'Wi
4条回答
  •  無奈伤痛
    2020-12-14 12:41

    The window might be loaded on demand - try sending window to yourself in -init. See the discussion of -[NSWindowController loadWindow] in the documentation for more info.

提交回复
热议问题