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, k...@highrolls.net 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 (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