Re: Preventing NSSlider bar from drawing
Re: Preventing NSSlider bar from drawing
- Subject: Re: Preventing NSSlider bar from drawing
- From: Andreas Mayer <email@hidden>
- Date: Wed, 17 Jan 2007 04:41:26 +0100
Am 16.01.2007 um 22:22 Uhr schrieb Karl Moskowski:
In your NSSliderCell subclass, you have to override the private
method _usesCustomTrackImage to suppress the drawing of the
slider's track.
I'll try that, thanks!
Am 16.01.2007 um 22:53 Uhr schrieb Michael Watson:
Overriding private methods is unsound design. Ditto accessing
private variables.
Well, it seems that the slider is not using -drawBarInside:flipped:,
since overwriting it does not work as expected. So this is a bug and
I have no problem working around it by using "unsound design". I'll
just make sure that _usesCustomTrackImage is actually implemented
before replacing it. And should it go away in the future, I would
hope that NSSlider had been fixed ...
Andreas
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden