Re: Odd NSScroller behavior when clicking page dec/inc areas
Re: Odd NSScroller behavior when clicking page dec/inc areas
- Subject: Re: Odd NSScroller behavior when clicking page dec/inc areas
- From: Kyle Sluder <email@hidden>
- Date: Fri, 13 Sep 2013 12:07:53 -0700
On Fri, Sep 13, 2013, at 11:14 AM, Steve Mills wrote:
> What's up here? It sure smells like a bug.
It does, but it might be one you can work around by changing how you're
implementing scrolling.
If I understand correctly, you need to pin a pane of controls to the
edge of the viewport, and scroll the content underneath.
The typical way this is implemented in a Cocoa app is to move those
controls to a separate NSView that is a subview of your document view.
Listen for NSViewBoundsDidChangeNotification from the clip view, and set
the overlaid controls' view's frame such that it is pinned to the side
you desire.
--Kyle Sluder
_______________________________________________
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