Re: Adding subviews to collapsed splitview
Re: Adding subviews to collapsed splitview
- Subject: Re: Adding subviews to collapsed splitview
- From: Rainer Brockerhoff <email@hidden>
- Date: Fri, 1 Oct 2010 16:48:45 -0300
At 11:54 -0700 01/10/10, email@hidden wrote:
>From: Gideon King <email@hidden>
>Date: Sat, 2 Oct 2010 04:51:10 +1000
>Message-ID: <email@hidden>
>
>Hi, I have a splitview (actually an RBSplitView), split into left and right, that I add another RBSplitView to at runtime in the right subview, and that split view that is added has a text view and an outline view as its subviews. All this works fine when the pane where I put the splitview that contains the outline view and text view is not collapsed. I can resize it, collapse and expand it etc, and it all looks good.
>...
>Can anyone enlighten me as to how to add subviews to a collapsed panel in such a way that it will resize properly when expanded?
Howdy Gideon, I'm the author of RBSplitView.
Is there any special reason for you to add the subview at runtime? And are you actually adding the inner RBSplitView directly as a subview to the outer one (which is recommended), or inserting it into an empty RBSplitSubview?
You could try calling -adjustSubviews on the inner RBSplitView after adding it, which should force it to recalculate its own subviews.
HTH,
--
Rainer Brockerhoff <email@hidden>
Belo Horizonte, Brazil
"In the affairs of others even fools are wise
In their own business even sages err."
Blog: http://brockerhoff.net/blog
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden