Re: NSScroller trackKnob
Re: NSScroller trackKnob
- Subject: Re: NSScroller trackKnob
- From: email@hidden
- Date: Thu, 18 Nov 2010 20:30:46 -0700
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, 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