Re: Size of NSSplitViewDividerStyleThin
Re: Size of NSSplitViewDividerStyleThin
- Subject: Re: Size of NSSplitViewDividerStyleThin
- From: ecir hana <email@hidden>
- Date: Thu, 11 Dec 2014 23:33:13 +0100
Thanks for the reply again! The problem is I now tried to only copy-paste
from the Apple docs and Cocoa with Love and I still get the said behavior.
That is, when I move the mouse cursor slowly across the divider it changes
back to text selection cursor right after leaving the splitting line. In
picture:
|
|
-----X------- <-- divider
X
X <-- resize cursor
| <-- text selection cursor
|
^ moving mouse from here in the upper direction
Why does not the cursor continue to be of the resize variety for the
additional 2 pixels?
I pastebin'ed a sample code here: http://pastebin.com/RBJXMBqh , if you or
someone else want to try this. Just paste the code into Terminal...
PS: Perhaps even more importantly, does anyone else sees this kind of
behavior at all?
On Thu, Dec 11, 2014 at 8:49 PM, Quincey Morris <
email@hidden> wrote:
> On Dec 11, 2014, at 02:56 , ecir hana <email@hidden> wrote:
>
>
> Btw., when I don't do `setDocumentView` for the textviews, the cursor
> shows up as expected.
>
> Why is this happening? Is it possible to have the resizing cursor over the
> whole divider frame?
>
>
> My guess is that there’s something wrong with the resizing of your text
> views to fit the scroll view’s container, so near the divider the cursor is
> over a text view *and* the divider cursor (i.e. grab) rect, and the text
> view is winning control of the cursor.
>
> Possibly your text views are not resizing with the window at all, or
> possibly they’re resizing but their edges are pinned slightly outside the
> scroll view’s visible rect.
>
> Yet another issue might be the text view’s own insets, which typically
> provide clearance between the view’s container and the actual text. I
> believe the default is for some clearance on the sides and maybe the top,
> but I’m not sure about the bottom.
>
> Either way, since the “extra pixels each side of the divider that help to
> grab it” aren’t part of a divider “view”, I think you’ll have to make sure
> that the content of the split pane stay far enough away from the divider’s
> physical thickness to permit this whole “extra pixels” thing to work.
>
>
_______________________________________________
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