• 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
Re: Size of NSSplitViewDividerStyleThin
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Size of NSSplitViewDividerStyleThin


  • Subject: Re: Size of NSSplitViewDividerStyleThin
  • From: Quincey Morris <email@hidden>
  • Date: Thu, 11 Dec 2014 04:35:14 +0000

On Dec 10, 2014, at 17:54 , ecir hana <email@hidden> wrote:
>
> My question is, how to have a thin divider which has wider hit area than
> 1px? In other words, I like how `NSSplitViewDividerStyleThin` looks and how
> `NSSplitViewDividerStyleThick` behaves. Is it somehow possible to have both?

This doesn’t sound right. According to the NSScrollViewDelegate documentation:

> "A split view with thin dividers proposes an effective frame that's a little larger than the drawn frame, to make it easier for the user to actually grab the divider.”

And AFAICT this is what actually happens in (say) Mail, where the mail list appears to be just a table view in a scroll view. I get more than 1 pixel’s leeway to grab the dividers on each side of it.

Anyway, ‘splitView:additionalEffectiveRectOfDividerAtIndex:’ isn’t intended for widening the grab region. It’s for adding a separate rect containing (e.g.) a grabber icon, that’s below or to one side of the divider. The delegate method ‘splitView:effectiveRect:forDrawnRect:ofDividerAtIndex:’ appears to be intended for what you want to do.



_______________________________________________

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: Size of NSSplitViewDividerStyleThin
      • From: ecir hana <email@hidden>
References: 
 >Size of NSSplitViewDividerStyleThin (From: ecir hana <email@hidden>)

  • Prev by Date: Size of NSSplitViewDividerStyleThin
  • Next by Date: NSUserDefaults and home folder on different drive
  • Previous by thread: Size of NSSplitViewDividerStyleThin
  • Next by thread: Re: Size of NSSplitViewDividerStyleThin
  • Index(es):
    • Date
    • Thread