Customizing NSSlider (NSSliderCell)
Customizing NSSlider (NSSliderCell)
- Subject: Customizing NSSlider (NSSliderCell)
- From: Daniel Wilson <email@hidden>
- Date: Mon, 30 Mar 2015 21:15:33 -0500
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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden