• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Customizing NSSlider (NSSliderCell)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Customizing NSSlider (NSSliderCell)
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: Re: AudioTimeStamp in AURenderCallback
  • Next by Date: Re: Customizing NSSlider (NSSliderCell)
  • Previous by thread: Re: AudioTimeStamp in AURenderCallback
  • Next by thread: Re: Customizing NSSlider (NSSliderCell)
  • Index(es):
    • Date
    • Thread