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

NSSliderCell does not use drawBarInside:flipped:?


  • Subject: NSSliderCell does not use drawBarInside:flipped:?
  • From: Andreas Mayer <email@hidden>
  • Date: Tue, 14 Jun 2005 02:08:21 +0200

The documentation for NSSliderCell's drawBarInside:flipped: says:

"Draws the slider’s bar—but not its bezel or knob—inside aRect. aRect is the bounds of the bar, not its interior rect.
The flipped argument indicates whether the cell’s control view—that is, the NSSlider or NSMatrix associated with the NSSliderCell—has a flipped coordinate system.
You should never invoke this method explicitly. It’s included so you can override it in a subclass."


So I did overwrite drawBarInside:flipped:.

But the (old) slider track gets drawn anyway.

Unless I made a really stupid mistake, this seems to be a bug in NSSliderCell where the track is not drawn in drawBarInside:flipped: but directly in drawInteriorWithFrame:inView: instead.

Can anyone confirm this one way or the other?

(I worked around this problem by drawing exactly over the original track. This is not really a solution but I didn't want to completely re-implement drawInteriorWithFrame:inView: for NSSliderCell.)


Andreas _______________________________________________ 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
  • Follow-Ups:
    • Re: NSSliderCell does not use drawBarInside:flipped:?
      • From: Ryan Stevens <email@hidden>
  • Prev by Date: Re: Cocoa-Java-based Universal Binary?
  • Next by Date: Re: Cocoa-Java-based Universal Binary?
  • Previous by thread: Re: Printing The Cocoa Documenation
  • Next by thread: Re: NSSliderCell does not use drawBarInside:flipped:?
  • Index(es):
    • Date
    • Thread