Re: reusable custom views?
Re: reusable custom views?
- Subject: Re: reusable custom views?
- From: Frank Midgley <email@hidden>
- Date: Thu, 23 Sep 2004 15:31:27 -0500
On Sep 23, 2004, at 3:03PM, David Feldman wrote:
I'd like to create a custom NSView in IB by creating a new View
object, adding some standard controls, and creating some connections.
I know how to do that but I only end up with one instance of the view.
What I'd like to do from there is create multiple instances of that
same view with the same controls in it, dragging them into a window in
my nib file. Is there any way to do this easily?
You can move the controls and preserve connections by using the
pop-n-drag-n-drop trick. Open the view, select all, click and hold on
any control until they all "pop" off the canvas and then drag them to
another view.
Downsides: will not bring over the view itself and it moves, not
copies. The latter can be worked around when moving between nib's by
reverting the source nib after moving.
-Frank
------------------------------------
Frank M. Midgley
email@hidden
http://homepage.mac.com/knarf/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden