On Sep 18, 2013, at 13:35:02, Ken Thomases <k...@codeweavers.com> wrote:

> 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


Ah, thanks everyone. I'd even read that a day or two ago and it promptly fell 
out of my brain. Too many things going on and I'm a bit wacko right now. :)

Yes, it sounds like it won't work because of the mouseDown override. But it 
actually does, since I only need to run my custom code when the scroller style 
is set to NSScrollerStyleLegacy, in which case it's not acting like an overlay 
scroller. So this works.

--
Steve Mills
office: 952-818-3871
home: 952-401-6255
cell: 612-803-6157




_______________________________________________

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

Reply via email to