Hi,
I am new to C++ and Audio Unit programming. I am trying to create my own custom
slider and am having much difficulty. Currently I am using NSSlider but I have
read that I need to subclass NSSliderCell to update the graphics. I don’t even
know how to subclass NSSliderCell. Does anyone know how to? Currently for my .h
file I have
@interface PHAS_RateGestureSlider : NSSlider {}
@end
And in my .m file I have
@implementation PHAS_RateGestureSlider
- (void)mouseDown:(NSEvent *)inEvent {
[[NSNotificationCenter defaultCenter] postNotificationName:
PHAS_RateGestureSliderMouseDownNotification object: self];
[super mouseDown: inEvent];
[[NSNotificationCenter defaultCenter] postNotificationName:
PHAS_RateGestureSliderMouseUpNotification object: self];
}
@end
Does anyone know how to subclass NSSliderCell and add a custom knob or slider
bar? Thank you!
P.S. I already have successfully created about 30+ effects so far using the
generic horizontal slider in interface builder.
-Daniel Wilson _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/coreaudio-api/archive%40mail-archive.com
This email sent to [email protected]