• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Adding subviews to collapsed splitview
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Adding subviews to collapsed splitview


  • Subject: Adding subviews to collapsed splitview
  • From: Gideon King <email@hidden>
  • Date: Sat, 2 Oct 2010 04:51:10 +1000

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.

|           | Outline view |
| Main view |--------------|
|           | Text view    |

But when I try to add the subviews when the right side split subview is collapsed, when I expand it, there is a gap at the edge of the split view holding the right side content, and the table headers are not showing on the outline view. I therefore think that there must be some special magic to add/resize them so that they will be properly positioned and sized when the subview is expanded.

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?

Thanks

Gideon






_______________________________________________

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

  • Prev by Date: Re: Why is NSPopUp broken in drop-down mode?
  • Next by Date: Re: Why is NSPopUp broken in drop-down mode?
  • Previous by thread: Question regarding UIView fading
  • Next by thread: Re: Adding subviews to collapsed splitview
  • Index(es):
    • Date
    • Thread