On Dec 10, 2014, at 17:54 , ecir hana <ecir.h...@gmail.com> 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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to