Cocoa View Template
In IB, there is a Cocoa View Template that creates a xib without any type of window. I have looked in the docs and can't seem to find how this is useful. You can't just load a xib without a window. Well, you can but it doesn't show anything.
Does anybo开发者_开发知识库dy know how to use a View Xib without a window? Can it be used as a popupmenu?
In IB, there is a Cocoa View Template that creates a xib without any type of window. I have looked in the docs and can't seem to find how this is useful.
A nib with only a window in it would typically be loaded by a window controller.
A nib with only a view in it would typically be loaded by a view controller.
You can place other resources in it such as Bitmaps or infact anyother data types that are supported. You can dynamically load Xib resources at runtime so you could have different Nibs for different languages/functionality.
精彩评论