using IB views as templates to be inserted in other views
using IB views as templates to be inserted in other views
- Subject: using IB views as templates to be inserted in other views
- From: nicolas berloquin <email@hidden>
- Date: Sun, 28 Apr 2002 11:59:26 +0200
Hi !
I'm new to the list and to cocoa. I've searched the archives but I
didn't find anything relevant to my question, sooo here it goes:
I'm trying to do something that I thought would be really common with IB
and cocoa:
I'd like to create an NSView or a custom view in IB, then, inside my
code, "import" the view then insert it as a subview of some
other IB created view.
The IB FAQ says that one simply has to create a socket somewhere
accessible and connect it to this view, but what if I need
multiple instances of this view ? (I'm planning to insert it many times
in a scrollerview, or inside a matrix).
How does one clone a complete view hierarchy, then ?
I'm sure this is a very common task, could someone please forward me
some pointers/snippets ?
PS I've been quite disappointed with the lack of sample
code/technote/task description given with cocoa, the ref manual is good,
but we lack help for common uses... (or am I the only one to
complain ? ;-) )
thanks !
_______________________________________________
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.