objective-c - cocoa-How to manage individual NSWindow of different nib files and multiple subviews under one NSWindow?
PHP中文网
PHP中文网 2017-05-02 09:23:30
0
1
372

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?

PHP中文网
PHP中文网

认证0级讲师

reply all(1)
伊谢尔伦

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.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template