Re: How to hide the divider in a collapsed NSSplitView pane
Re: How to hide the divider in a collapsed NSSplitView pane
- Subject: Re: How to hide the divider in a collapsed NSSplitView pane
- From: Milen Dzhumerov <email@hidden>
- Date: Sun, 22 Jun 2008 02:21:18 +0100
Hi Markus,
AppKit release notes say this:
"A common UI pattern now is to provide a button to show and hide one
subview or another of a split view, and completely hide the divider
when the subview between it and the edge of the window is hidden. To
make it easy for you to do this there is a new -
splitView:shouldHideDividerAtIndex: delegate method you can implement."
M
On 21 Jun 2008, at 23:38, Markus Spoettl wrote:
Hello List,
I've done a lot of testing and googling but I can't figure out how
or even if it is possible to completely hide a divider of a
NSSplitView.
Suppose I have a split view setup like this:
A B
|------|------|
B is collapsible through a button, not through dragging (there is a
min and max constraint on the divider too). I have a button that
toggles the view from collapsed to expanded and back. However, when
view is collapsed the divider is still visible on the right edge of
the split view.
I've tried sizing the subviews myself in my own custom SplitView
subclass - not using NSSplitView's -setPosition: - but even that
doesn't help. The splitview somehow adjusts the the frames after
they have been set so the divider stays visible, not matter what you
do.
Instruments is an example of an app that has splitters that work
like I want it. The Extended Details pane toggles on and off using a
button (on the bottom toolbar). When collapsed there is no divider
visible and you can expand it by using the button only.
Is that something I can do with NSSplitView? If so, how?
Regards
Markus
--
__________________________________________
Markus Spoettl
_______________________________________________
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
_______________________________________________
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