• 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
Overriding NSSliderCell
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Overriding NSSliderCell


  • Subject: Overriding NSSliderCell
  • From: Cyril Godefroy <email@hidden>
  • Date: Sun, 10 Feb 2002 11:28:32 +0100

Hi,

I need to create a custom NSSlider that allows selection of a range inside the values of the slider. Therefore, my custom NSSlider must more look like some Quicktime Player slider, with a rectangle as the bar, and the knob over or below that bar, and I need to change the knob's appearance.
These are things that for the most part NSSliderCell hasn't got direct public methods for.

1. Would overriding
- (void) drawInteriorWithFrame: (NSRect)cellFrame inView: (NSView*)controlView
from NSCell in my CustomSliderCell save me from difficult times?

2. How do I create that relation between my CustomSliderCell and my CustomSlider? That is a question that reading the doc hasn't helped me answering.

3. Did you already see such a control in an open-sourced framework or app?

Tia,
Cyril
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: loginWindow replacement
  • Next by Date: Getting the WindowRef from NSWindow?
  • Previous by thread: Re: NSWindow appearance change
  • Next by thread: Getting the WindowRef from NSWindow?
  • Index(es):
    • Date
    • Thread