tags:

views:

45

answers:

2

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 anybody know how to use a View Xib without a window? Can it be used as a popupmenu?

A: 

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.

Tony Lambert
+1  A: 

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.

Peter Hosey
thanks, i guess i overlooked the view controller docs.
joels