On Sep 18, 2013, at 1:01 PM, Steve Mills wrote:

> We needed to subclass NSScroller for just the horizontal scroller in one 
> scroll view (there was a weird bug where the default scroller had a dead zone 
> on the left end). Doing so prevents BOTH scrollers from using the overlay 
> style. Why? We only override mouseDown so we can work around this bug and 
> handle page decrement tracking ourself. Any way to override something else so 
> it thinks we can use overlay style?

This is documented in the Lion AppKit release notes.
https://developer.apple.com/library/mac/releasenotes/Cocoa/AppKitOlderNotes#10_7Scroller

A subclass of NSScroller uses legacy scroller style by default.  A subclass 
which is aware of the newer overlay style and _meets certain other conditions_ 
may override +isCompatibleWithOverlayScrollers to return YES.  The docs for 
that method explain the other conditions, but it sounds like your subclass 
won't pass because you're overriding -mouseDown:.
https://developer.apple.com/library/mac/documentation/Cocoa/Reference/ApplicationKit/Classes/NSScroller_Class/Reference/Reference.html#//apple_ref/doc/uid/20000340-SW40

Regards,
Ken


_______________________________________________

Cocoa-dev mailing list ([email protected])

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 [email protected]

Reply via email to