ftp.nice.ch/peanuts/GeneralData/Documents/openstep/OpenStepSpec_rtf.tar.gz#/OpenStepSpec_rtf/ApplicationKit/Classes/NSSliderCell.rtf

This is NSSliderCell.rtf in view mode; [Download] [Up]

paperh18648 margl-907 margr0 margt0 margb0 fi0 ri0 ql sb0 f1 fs24 Copyright f3 'e3f1 1994 by NeXT Computer, Inc.  All Rights Reserved.

s4 li100 fi0 ri1007 ql f0 b fs36 fs100 
fs36 NSSliderCell 
pard s11 li2872 fi-2771 ri1007 ql tx2872 f1 b0 fs28 fs48 
fs28 f0 b fs24 Inherits From:tab b0 fs28 f1 NSActionCell : NSCell : NSObject
fs20 
fs28 s6 f0 b fs24 Conforms To:tab b0 fs28 f1 NSCoding, NSCopying (NSCell)
fi0 NSObject (NSObject)
fs20 
fs28 s7 fi-2771 f0 b fs24 Declared In:tab b0 fs28 f1 AppKit/NSSliderCell.h 
fs20 
fs28 pard s16 li100 fi0 ri1007 ql f0 b fs28 fs20 
fs28 Class Description
fs14 
fs28 pard s1 li477 fi0 ri1007 ql tx2494 tx2872 tx3250 f1 b0 fs2 
fs28 NSSliderCell is a type of NSCell used to assist the NSSlider class, and to build matrices of sliders. The NSSliderCell encompasses all the visible portions of the NSSlider'd0the knob, the area along which the knob slides, and the optional title within this area. See the NSSlider class specification for an overview of how NSSliderCells work.
fs16 
fs28 pard s16 li100 fi0 ri1007 ql f0 b fs24 
fs28 Determining Component Sizes 
fs14 
fs28 pard s8 li7029 fi-6552 ri1007 ql tx6652 tx7030 f1 b0 fs2 
fs28 fi-6552 {f3 -} (NSSize)b cellSizeForBounds:b0 (NSRect)i aRecti0 tab Returns the minimum width and height needed to draw the NSSliderCell in i aRecti0 . If i aRecti0  too small to fit the knob and bezel, the width and height of i theSizei0  are set to 0.0.
fi-6552 fs16 
fs28 fi-6552 {f3 -} (NSRect)b knobRectFlipped:b0 (BOOL)i flippedi0 tab Gets the rectangle the knob will be drawn in. i flippedi0  indicates whether the NSSliderCell's view has a flipped coordinate system.
pard s16 li100 fi0 ri1007 ql f0 b fs48 
fs28 Setting Value Limits 
fs14 
fs28 pard s8 li7029 fi-6552 ri1007 ql tx6652 tx7030 f1 b0 fs2 
fs28 fi-6552 {f3 -} (double)b maxValueb0 tab Returns the NSSliderCell'27s maximum value. 
fi-6552 fs16 
fs28 fi-6552 {f3 -} (double)b minValueb0 tab Returns the NSSliderCell'27s minimum value. 
fi-6552 fs16 
fs28 fi-6552 {f3 -} (void)b setMaxValue:b0 (double)i aDoublei0 tab Sets the maximum value of the NSSliderCell to i aDoublei0 . 
fi-6552 fs16 
fs28 fi-6552 {f3 -} (void)b setMinValue:b0 (double)i aDoublei0 tab Sets the NSSliderCell'27s minimum value to i aDoublei0 . 
pard s16 li100 fi0 ri1007 ql f0 b fs48 
fs28 Modifying Graphic Attributes 
fs14 
fs28 pard s8 li7029 fi-6552 ri1007 ql tx6652 tx7030 f1 b0 fs2 
fs28 fi-6552 {f3 -} (int)b isVerticalb0 tab Returns 1 if the NSSliderCell is vertical, 0 if horizontal, -1 if unknown. 
fi-6552 fs16 
fs28 fi-6552 {f3 -} (float)b knobThicknessb0 tab Returns the knob'27s thickness as a float value.
fi-6552 fs16 
fs28 fi-6552 {f3 -} (void)b setKnobThickness:b0 (float)i aFloati0 tab Sets the knob'27s thickness to i aFloati0  (width if a horizontal slider, height if vertical).
fi-6552 fs16 
fs28 fi-6552 {f3 -} (void)b setTitle:b0 (NSString *)i aStringi0 tab Sets the title within the NSSliderCell to a copy of i aStringi0 . 
fi-6552 fs16 
fs28 fi-6552 {f3 -} (void)b setTitleCell:b0 (NSCell *)i aCelli0 tab Sets the NSCell (or subclass thereof) object used to draw the title within the NSSliderCell. The cell object should ideally be an instance of NSTextFieldCell or one of its subclasses.
fi-6552 fs16 
fs28 fi-6552 {f3 -} (void)b setTitleColor:b0 (NSColor *)i aColori0 tab Sets the color of text in the title to i aColori0 . 
fi-6552 fs16 
fs28 fi-6552 {f3 -} (void)b setTitleFont:b0 (NSFont *)i fontObjecti0 tab Sets the NSFont object used to draw the title within the NSSliderCell. 
fi-6552 fs16 
fs28 fi-6552 {f3 -} (NSString *)b titleb0 tab Returns the title within the NSSliderCell.
fi-6552 fs16 
fs28 fi-6552 {f3 -} (id)b titleCellb0 tab Returns the NSCell (or subclass thereof) object used to draw the title within the NSSliderCell. 
fi-6552 fs16 
fs28 fi-6552 {f3 -} (NSFont *)b titleFontb0 tab Returns the NSFont object used in drawing the title within the NSSliderCell. 
fi-6552 fs16 
fs28 fi-6552 {f3 -} (NSColor *)b titleColorb0 tab Returns the color of text in the title. 
pard s16 li100 fi0 ri1007 ql f0 b fs48 
fs28 Displaying the NSSliderCell 
fs14 
fs28 pard s8 li7029 fi-6552 ri1007 ql tx6652 tx7030 f1 b0 fs2 
fs28 fi-6552 {f3 -} (void)b drawBarInside:b0 (NSRect)i aRecti0 tab Draws the NSSliderCell'27s background bar (but not the
s9 li7030 fi-6553 fi-5796 b flipped:b0 (BOOL)i flippedi0 tab  tab bezel around it or the knob) in i aRecti0 . i flippedi0  indicates whether the NSView'27s coordinate system is flipped.
s8 li7029 fi-5794 fi-6552 fs16 
fs28 fi-6552 {f3 -} (void)b drawKnobb0 tab Draws the NSSliderCell'27s knob after calculating the drawing rectangle. 
fi-6552 fs16 
fs28 fi-6552 {f3 -} (void)b drawKnob:b0 (NSRect)i knobRecti0 tab Draws the NSSliderCell'27s knob in i knobRecti0 . 
pard s16 li100 fi0 ri1007 ql f0 b fs48 
fs28 Modifying Behavior 
fs14 
fs28 pard s8 li7029 fi-6552 ri1007 ql tx6652 tx7030 f1 b0 fs2 
fs28 fi-6552 {f3 -} (double)b altIncrementValueb0 tab Returns the increment by which the NSSliderCell modifies its value when its knob is Alternate-dragged one pixel.
fi-6552 fs16 
fs28 fi-6552 {f3 -} (void)b setAltIncrementValue:b0 (double)i incValuei0 tab Sets the amount by which the NSSliderCell modifies its value when the knob is dragged one pixel with the Alternate key held down. 
pard s16 li100 fi0 ri1007 ql f0 b fs48 
fs28 Tracking the Mouse 
fs14 
fs28 pard s8 li7029 fi-6552 ri1007 ql tx6652 tx7030 f1 b0 fs2 
fs28 fi-6552 + (BOOL)b prefersTrackingUntilMouseUpb0 tab Returns YES to allow NSSliderCell objects to track even when the mouse leaves their bounds. Override this method to return NO if you want the NSSliderCell to stop tracking once the mouse leaves its bounds. 
fi-6552 fs16 
fs28 fi-6552 {f3 -} (NSRect)b trackRectb0 tab Returns the rectangle used in tracking the mouse (only valid while tracking).
}

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.