• 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
Re: drawing outside your view when elasticity is elasticizing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >drawing outside your view when elasticity is elasticizing (From: Steve Mills <email@hidden>)

  • Prev by Date: Re: NSData, NSImageView value binding, and NSUnarchiveFromData - nothing appears
  • Next by Date: Re: Floating-point differences between ARM processors
  • Previous by thread: drawing outside your view when elasticity is elasticizing
  • Next by thread: Inserting Custom Data Into PowerPoint File
  • Index(es):
    • Date
    • Thread