On 28 Nov 2008, at 3:18 am, Michael A. Crawford wrote:
I assume I can sub-class the control but I wondering if there is a better way. I'm using a circular slider and would like it to rotate when I roll the scroll wheel up or down.
You can just implement the -scrollWheel: method in a category. For example:
@implementation NSSlider (Scrollwheel) - (void) scrollWheel:(NSEvent*) event { [self setFloatValue:[self floatValue] + [event deltaY]]; [self sendAction:[self action] to:[self target]]; } @end hth, 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 [EMAIL PROTECTED]