• 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
Re: NSSliderCell does not use drawBarInside:flipped:?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >NSSliderCell does not use drawBarInside:flipped:? (From: Andreas Mayer <email@hidden>)
 >Re: NSSliderCell does not use drawBarInside:flipped:? (From: Ryan Stevens <email@hidden>)
 >Re: NSSliderCell does not use drawBarInside:flipped:? (From: Andreas Mayer <email@hidden>)

  • Prev by Date: Draw windows offscreen
  • Next by Date: Re: Events, drive mounts
  • Previous by thread: Re: NSSliderCell does not use drawBarInside:flipped:?
  • Next by thread: Watch for overflow when drawing string to NSView for printing?
  • Index(es):
    • Date
    • Thread