Should the action look like this:

- (void)action:(id)sender;

i.e will sender be the NSScroller?

-koko


On Nov 18, 2010, at 8:14 PM, Graham Cox wrote:


On 19/11/2010, at 2:02 PM, k...@highrolls.net 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 (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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to