Re: NSSliderCell does not use drawBarInside:flipped:?
Re: NSSliderCell does not use drawBarInside:flipped:?
- Subject: Re: NSSliderCell does not use drawBarInside:flipped:?
- From: Ryan Stevens <email@hidden>
- Date: Wed, 15 Jun 2005 18:04:52 -0700
On Jun 14, 2005, at 10:49 AM, Andreas Mayer wrote:
Am 14. Jun 2005 um 19:05 Uhr schrieb Ryan Stevens:
Here's what my drawInteriorWithFrame:inView: looks like ..
[self drawBarInside:cellFrame flipped:[controlView
isFlipped]];
[self drawKnob];
Not sure if I'm missing out on some "free" stuff this way but it
seems to work well enough for me. *shrug*
Hm. Actually drawInteriorWithFrame:inView: seems to call [self
drawKnob] only.
I still get the system drawn tracks without sending
drawBarInside:flipped: from inside drawInteriorWithFrame:inView:.
Instead the track seems to be drawn in drawWithFrame:inView: (which
does also draw the tick marks at least).
So if you commented out the [self drawBarInside:cellFrame flipped:
[controlView isFlipped]] line in your code above your
drawBarInside:flipped: method should still be called.
But I commented out my drawing code and the track is already
visible at that moment.
Oh, and I'm on 10.4.1 in case that makes any difference.
Guess I was mistaken, I cheated more than I thought. That's sort of
what my control's drawRect: looks like..calling to the cell, of course.
_______________________________________________
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