• 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
NSSplitView divider position
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSSplitView divider position
      • From: Ken Thomases <email@hidden>
  • Prev by Date: Re: auto layout exception: Unable to create description in descriptionForLayoutAttribute_layoutItem_coefficient. Something is nil
  • Next by Date: Re: NSSplitView divider position
  • Previous by thread: Re: How to obtain paths of laid-out text [SOLVED]
  • Next by thread: Re: NSSplitView divider position
  • Index(es):
    • Date
    • Thread