Re: reusable custom views?
Re: reusable custom views?
- Subject: Re: reusable custom views?
- From: David Feldman <email@hidden>
- Date: Thu, 23 Sep 2004 16:46:32 -0400
The problem there is that I end up with multiple copies of a set of
controls, so if I want to make changes to the layout or connections I
have to do it for each copy. What I'm going for, in effect, is a custom
NSView-based control, but I'm hoping I can create it via IB rather that
programmatically.
--Dave
On Sep 23, 2004, at 16:39, Ondra Cada wrote:
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
_______________________________________________
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