Subclassing NSSlider and NSSliderCell
Subclassing NSSlider and NSSliderCell
- Subject: Subclassing NSSlider and NSSliderCell
- From: Vinay Prabhu <email@hidden>
- Date: Tue, 23 May 2006 11:14:03 +0530 (IST)
Hi,
I am designing a application, where it is required to
customize the slider appearance.
So I have subclassed NSSliderCell, by following code in the
subclass of NSSlider,
+ (void)initialize
{
[Slider setCellClass:[SliderCell class]];
}
This works fine, and "drawKnob" is successfully overridden.
There are few member variables declared in the subclass of
NSSlider class, which needs to be accessed when "drawKnob" is
called.
I am not sure how to get access those member variables.
Thanks in advance.
Regards
Vinay
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s)and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender or email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden