Re: reusable custom views?
Re: reusable custom views?
- Subject: Re: reusable custom views?
- From: Ondra Cada <email@hidden>
- Date: Thu, 23 Sep 2004 22:39:15 +0200
On 23.9.2004, at 22:31, Frank Midgley 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.
Or just copy and paste, or Alt-drag, the whole thing.
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.
Which works inside one NIB and between more of them as well.
---
Ondra Čada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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