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: Kevin Cathey <email@hidden>
- Date: Mon, 19 Jul 2010 09:17:16 -0700
Jerry,
If you copy the tables, buttons, tab view, and array controllers all in one copy action, when pasting in another document, the bindings should be intact. If they are not, please file a bug with your XIB and steps to reproduce. At this time, copying/pasting bindings to objects like the File's Owner are not supported.
Additionally, if you are running into crashes in IB, please file bugs! Including the XIB that crashes with detailed steps to reproduce will be very helpful.
Kevin
On 15 Jul 2010, at 17:54, Jerry Krinock wrote:
>
> 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
_______________________________________________
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