setAltIncrementValue:
オプションキーを押しながらスライダーをドラッグしたときの増加量をセットします
-(void)setAltIncrementValue:(double)increment:
解説
オプションキーを押しながらスライダーをドラッグしたときの増加量をセットします。
返り値
( void )
なし
引数
( double )increment
増加量
フレームワーク
ApplicationKit
クラス
NSSliderCell
Instance Methods
使用可能
10.0
参照
- maxValue
- minValue
例文
#import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { //myOutletはスライダーセル [myOutlet setNumberOfTickMarks:5]; [myOutlet setAltIncrementValue:5]; NSLog([NSString stringWithFormat:@"%.1f",[myOutlet altIncrementValue]]); } @end