• 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: Subclass NSScroller prevents overlay scroller style
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Subclass NSScroller prevents overlay scroller style


  • Subject: Re: Subclass NSScroller prevents overlay scroller style
  • From: Ken Thomases <email@hidden>
  • Date: Wed, 18 Sep 2013 13:35:02 -0500

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@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


  • Follow-Ups:
    • Re: Subclass NSScroller prevents overlay scroller style
      • From: Steve Mills <email@hidden>
References: 
 >Subclass NSScroller prevents overlay scroller style (From: Steve Mills <email@hidden>)

  • Prev by Date: Re: Subclass NSScroller prevents overlay scroller style
  • Next by Date: Re: iOS 6 Web View Frame Problem
  • Previous by thread: Re: Subclass NSScroller prevents overlay scroller style
  • Next by thread: Re: Subclass NSScroller prevents overlay scroller style
  • Index(es):
    • Date
    • Thread