Re: NSScroller trackKnob
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