Re: Drag and Drop between xibs without re-typing bindings? Arghhh!
Re: Drag and Drop between xibs without re-typing bindings? Arghhh!
- Subject: Re: Drag and Drop between xibs without re-typing bindings? Arghhh!
- From: Jerry Krinock <email@hidden>
- Date: Thu, 15 Jul 2010 17:54:57 -0700
On 2010 Jul 15, at 14:05, Ken Thomases wrote:
> On Jul 15, 2010, at 3:52 PM, Jerry Krinock wrote:
>
>> I have three tables and six buttons in a tab view item, bound to three array controllers, plus other bindings, totalling several dozen bindings. Yup, I want to copy this structure into another xib!
>
> Duplicate the XIB and trim out anything that you don't want to keep. You may have the best luck in making this XIB a stand-alone view, loaded by a subclass of NSViewController, then you can reuse it wherever you like.
I don't want to reuse it. This is a one-time thing.
But thank you, Ken, because your idea to strip out the other stuff turned out to be the ticket anyhow...
When I moved the NSTabViewItem's NSView into the root level, deleted everything else, copied only this view and the 3 array controllers, Interface Builder still crashed when dragging to the other nib, but now copy and paste worked without crashing. So then I created a new tab view item, adjusted sizes so that new tab view item's view was exactly the same size as that of the view from the other nib, and dragged the old view's contents into the new view. All items landed in the same frames, and all the copied bindings are there.
(The latter chicanery was needed because Interface Builder does not allow you to replace the content view of a tab view item, nor drag a new tab view item into a tab view.)
Whew!
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden