NSView nib (as template)
NSView nib (as template)
- Subject: NSView nib (as template)
- From: "chris corbell"<email@hidden>
- Date: Tue, 19 Nov 2002 17:37:52 -0800
I found questions similar to this in the list
archive but did not find the answer...
Is it possible to have a nib file that simply
contains an NSView (or subclass) resource,
and load this as a template for objects
created at runtime and added to windows?
I do not want the nib-view to represent a
single instance, nor even a single-instance
per-window (the view in question represents
a set of controls pertaining to a "channel",
and the number of channels varies from
document to document).
I guess what I'm after is something similar
to the PowerPlant LView resource functionality,
where you can load a view resource with all of its
subviews, controls, etc., instantiate an
object, and then put that object wheverer you
want it (in a dialog, window, etc.).
I'm experimenting without success so far,
but is there someplace where this type of
use of Cocoa nib files is documented?
TIA,
Chris Corbell
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.