Deprecated NSSliderCell Methods

A method identified as deprecated has been superseded and may become unsupported in the future.

Deprecated in OS X v10.9

setKnobThickness:

Set the knob’s thickness, measured in pixels. (Deprecated in OS X v10.9. There is no replacement method.)

- (void)setKnobThickness:(CGFloat)thickness
Parameters
thickness

The knob's thickness. The thickness is defined to be the extent of the knob along the long dimension of the bar. In a vertical slider, then, a knob’s thickness is its height; in a horizontal slider, its thickness is its width.

Availability
  • Available in OS X v10.0 and later.
  • Deprecated in OS X v10.9.
Declared In
NSSliderCell.h

setTitle:

Sets the title in the bar behind the slider’s knob. (Deprecated in OS X v10.9. A slider doesn’t include a title.)

- (void)setTitle:(NSString *)title
Parameters
title

The title.

Availability
  • Available in OS X v10.0 and later.
  • Deprecated in OS X v10.9.
See Also
Declared In
NSSliderCell.h

setTitleCell:

Sets the cell used to draw the slider’s title. (Deprecated in OS X v10.9. A slider doesn’t include a title.)

- (void)setTitleCell:(NSCell *)aCell
Discussion

You only need to call this method if the default title cell, NSTextFieldCell, doesn’t suit your needs—that is, if you want to display the title in a manner that NSTextFieldCell doesn’t permit. When you do choose to override the default, aCell should be an instance of a subclass of NSTextFieldCell.

Availability
  • Available in OS X v10.0 and later.
  • Deprecated in OS X v10.9.
Declared In
NSSliderCell.h

setTitleColor:

Sets the color used to draw the slider’s title. (Deprecated in OS X v10.9. A slider doesn’t include a title.)

- (void)setTitleColor:(NSColor *)color
Availability
  • Available in OS X v10.0 and later.
  • Deprecated in OS X v10.9.
Declared In
NSSliderCell.h

setTitleFont:

Sets the font used to draw the slider’s title. (Deprecated in OS X v10.9. A slider doesn’t include a title.)

- (void)setTitleFont:(NSFont *)font
Availability
  • Available in OS X v10.0 and later.
  • Deprecated in OS X v10.9.
Declared In
NSSliderCell.h

title

Returns the slider’s title. (Deprecated in OS X v10.9. A slider doesn’t include a title.)

- (NSString *)title
Return Value

The title. The default title is the empty string (@"").

Availability
  • Available in OS X v10.0 and later.
  • Deprecated in OS X v10.9.
Declared In
NSSliderCell.h

titleCell

Returns nil. (Deprecated in OS X v10.9. A slider doesn’t include a title.)

- (id)titleCell
Availability
  • Available in OS X v10.0 and later.
  • Deprecated in OS X v10.9.
Declared In
NSSliderCell.h

titleColor

Returns nil. (Deprecated in OS X v10.9. A slider doesn’t include a title.)

- (NSColor *)titleColor
Availability
  • Available in OS X v10.0 and later.
  • Deprecated in OS X v10.9.
Declared In
NSSliderCell.h

titleFont

Returns nil. (Deprecated in OS X v10.9. A slider doesn’t include a title.)

- (NSFont *)titleFont
Availability
  • Available in OS X v10.0 and later.
  • Deprecated in OS X v10.9.
Declared In
NSSliderCell.h