NSSplitView divider position
NSSplitView divider position
- Subject: NSSplitView divider position
- From: Luther Baker <email@hidden>
- Date: Sat, 08 Nov 2014 08:19:36 -0600
Is there a direct way to determine the positions of the dividers in
NSSplitView. I'm implementing
splitView:additionalEffectiveRectOfDividerAtIndex:
and would like to create a rect relative to the current position of the
divider.
If not, are most people calculating this by adding the widths of all the
"visible" child/container views to the left of the divider index? (I've
noticed the the widths of "collapsed" views in the split view still have
the original size).
Also, it seems that the NSRect returned from this method is interpreted
more like an iOS rect ... that is, Y and the height seem to be top down and
not bottom up. Is that because the NSSplitView's internal coordinate system
is managed as such since the docs say ...
"The rectangle should be expressed in the coordinate system defined by
*splitView*."
Thanks,
-Luther
_______________________________________________
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