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

Size of NSSplitViewDividerStyleThin


  • Subject: Size of NSSplitViewDividerStyleThin
  • From: ecir hana <email@hidden>
  • Date: Thu, 11 Dec 2014 02:54:07 +0100

Hi,

I have two NSTextViews, each of which is wrapped in NSScrollView and both
are embedded inside NSSplitView:

    +--------------+
    |+------------+|
    ||+----------+||
    |||          |<---- NSTextView
    ||+----------+||
    |+------------+|
    +--------------+<-- divider
    |+------------+|
    ||+----------+||
    |||          ||<---- NSScrollView
    ||+----------+||
    |+------------+|<--- NSSplitView
    +--------------+

I think all the pieces have fairly default settings, in particular, the
divider has `NSSplitViewDividerStyleThick` `dividerStyle`. And everything
works fine.

The problem begins when I set the style to `NSSplitViewDividerStyleThin`.
The gap ("grab area") between the two textviews becomes 1px wide and it
becomes very diffult to grab the divider and alter the splitting. I tried
to add `splitView:additionalEffectiveRectOfDividerAtIndex:` to the
delegate, and it even adds the extra rectangle, but it still doesn't work
becase the rectangle becomes covered up by the textviews(?). I mean, it is
there but I cannot grab it because it is beneath the textviews, so it still
effectively is 1px wide.

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?

Thanks!
_______________________________________________

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: Quincey Morris <email@hidden>
  • Prev by Date: Re: What triggers -applicationDidChangeScreenParameters: delegate method?
  • Next by Date: Re: Size of NSSplitViewDividerStyleThin
  • Previous by thread: Re: What triggers -applicationDidChangeScreenParameters: delegate method?
  • Next by thread: Re: Size of NSSplitViewDividerStyleThin
  • Index(es):
    • Date
    • Thread