Re: IB: Inserting a parent item in a splitview pane?
Re: IB: Inserting a parent item in a splitview pane?
- Subject: Re: IB: Inserting a parent item in a splitview pane?
- From: Jean-Daniel Dupas <email@hidden>
- Date: Thu, 3 Jul 2008 19:37:13 +0200
Le 3 juil. 08 à 19:17, Jens Alfke a écrit :
Every once in a while I run into the following frustrating situation
in IB: I have a UI with an NSSplitView, and one of the panes is a
content view like an NSTableView. I later decide that I need to add
another view inside that pane, like a button or a label. But I can't
find a way to do this. There'd have to be a container view in the
hierarchy between the splitview and the tableview, to add the new
view as a child of, but there's no command to do this.
The only workaround I've found is to use Unembed Objects to get rid
of the splitview, then add the button, embed it and the table in a
customview or box, then use Embed Objects again to recreate the
splitview. But this is kludgey and tends to mess up the layout.
There must be a better way?
—Jens
In IB 3, I think this is possible to reparent a view (moving it to
another superview). So it's possible to insert a custom view in your
split view, and then move your table in this new custom view (this
will temporary do a three panes splitview).
The simplest way to move a view from one super view to another or to
insert a view in a split view is to use the outline representation
(the browser view should works too).
It's also probably possible to select the table, cut, insert a custom
view, and paste your table view back (I don't know how well IB 3
preserve connection when you cut/paste).
Or you can move your table out of the split view, insert a custom view
in the split view, and drop your table back into this custom view.
that's just workarounds, but at least it remove the unembed step that
can break connections, and lose some settings (all split view
attributes).
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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