On Oct 7, 2014, at 9:31 AM, Antonio Nunes <devli...@sintraworks.com> wrote:
> Wondering if anyone has an idea of why prepareContentInRect: is not called > for a view when responsive scrolling is enabled. > > We are using an NSScrollView subclass that overrides prepareContentInRect:. I would not expect -prepareContentInRect: to be called on the scroll view. It would be called on the document view (and its subviews?). The purpose is to allow the document view to prepare itself for the requests to draw the overdraw region. The scroll view itself is not drawn in the overdraw region. Likewise, I would not expect the scroll view's -drawRect: to be called for overdrawing. > (I have tried overriding prepareContentInRect: in the NSScrollView’s > subclass, as well as in the view that serves as the scroll view’s document > view. Neither of these methods gets called though.) I would double-check that, in the occasions when you overrode -prepareContentInRect: in the document view, you didn't also accidentally disable responsive scrolling. Also, make sure your override calls through to super and doesn't unintentionally stop AppKit from further extending the overdraw region by passing the same rect in successive calls. Regards, Ken _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com