Re: NSScroller trackKnob
Re: NSScroller trackKnob
- Subject: Re: NSScroller trackKnob
- From: email@hidden
- Date: Thu, 18 Nov 2010 20:02:34 -0700
Maybe I spoke too soon.
I have subclassed NSScroller and set my scroller to this class.
Then this code:
- (void)awakeFromNib { [self setContinuous:YES]; }
- (void)trackKnob:(NSEvent *)theEvent {
[super trackKnob:theEvent];
NSLog(@"trackKnob");
}
I only get the log output when the mouse button is released ... this
is not continuous to me.
Clearly I am missing something.
Any suggestions?
-koko
On Nov 18, 2010, at 7:45 PM, Graham Cox wrote:
On 19/11/2010, at 1:36 PM, email@hidden wrote:
How does one get continuous tracking from an NSScroller?
-trackKnob only gives control when the mouse button is released.
There must be a method as normal scroll view behaviour is
continuous scrolling.
So I want to have a scroller, not associated with a scroll view and
get continuous call backs as the knob is moved.
Is there a way?
-setContinuous:YES
BUT, don't use a scrollbar when you really want a slider. Users hate
that, and the HIG police will be after you as well.
--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