Re: drawing outside your view when elasticity is elasticizing
Re: drawing outside your view when elasticity is elasticizing
- Subject: Re: drawing outside your view when elasticity is elasticizing
- From: Kyle Sluder <email@hidden>
- Date: Mon, 07 Jan 2013 15:24:24 -0800
On Mon, Jan 7, 2013, at 09:38 AM, Steve Mills wrote:
> What's the correct way to handle drawing our custom view that's in an
> NSScrollView when the scroll view is being pulled past the min/max of the
> scrollable area and the elasticity goes into effect, showing areas that
> are outside our view's bounds?
I don't believe there's a proper way to do this using public API. Hence
rdar://problem/9610290 (NSScrollView: Need API for drawing beyond a view
extent during elastic scroll). Please file a duplicate of this bug so
Apple knows this issue needs to be addressed.
In the meantime, maybe you could subclass NSScrollView and override
-drawRect: to conspire with your view, but this is not a good
general-purpose solution to the problem, and Apple should provide a
better one.
--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