• 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: NSScroller trackKnob
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSScroller trackKnob


  • Subject: Re: NSScroller trackKnob
  • From: Graham Cox <email@hidden>
  • Date: Fri, 19 Nov 2010 14:11:04 +1100

On 19/11/2010, at 2:02 PM, email@hidden wrote:

> I only get the log output when the mouse button is released ... this is not continuous to me.
>
> Clearly I am missing something.
>


-trackKnob is an internal method that performs the tracking - it's not where you get the stream of value changes from the scroller. There is no reason to override it, and all you're doing is calling super, which keeps control until the mouse is released, when it returns, triggering your log. In other words, you're getting exactly what I'd expect to see.

If you set a target and action on the scroller, you should find that the target's action is called repeatedly while you drag the scroller. No subclassing of the control is required.

--Graham


_______________________________________________

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: NSScroller trackKnob
      • From: email@hidden
References: 
 >Re: NSScroller trackKnob (From: Graham Cox <email@hidden>)
 >Re: NSScroller trackKnob (From: email@hidden)

  • Prev by Date: Why UIBarButtonItemStyleBordered?
  • Next by Date: Re: NSScroller trackKnob
  • Previous by thread: Re: NSScroller trackKnob
  • Next by thread: Re: NSScroller trackKnob
  • Index(es):
    • Date
    • Thread