In a project, for different nib files, should each nib have a NSWindow
?
Or, only one nib file has a NSWindow
, and other nib views are directly added to that window when they need to be displayed?
For a NSWindow
, how to manage its multiple subviews?
For example, there are two interfaces. If I add them to the subview of this window, how do I get them?
Prior to OS X 10.9, the best practice regarding NSWindow was an NSWindow
.Xib
对应一个NSWindowController
。所有的子视图全部可以添加到其contentView
.You can use Tag or property to get the view.