macOS/iOS API解説

iOS , Mac アプリケーション開発のために使われる主要フレームワークの日本語情報です。2010年代に書かれた内容です。今後更新はありません。

目次

setMaxValue:

プログレスインジケータの最大値を返します
-(void)setMaxValue:(double)newMaximum:

解説

プログレスインジケータの最大値を返します。
処理時間などが確定できないとき(床屋のポール状態)などは使いません。

返り値

( void )

なし

引数

( double )newMaximum

最大限の値

フレームワーク

ApplicationKit

クラス

NSProgressIndicator

Instance Methods

使用可能

10.0

参照

- maxValue

例文

#import "MyObject.h"

@implementation MyObject

- (IBAction)button:(id)sender
{
[myOutlet setIndeterminate:NO];
[myOutlet setMaxValue:150.0];
[myOutlet setDoubleValue:10.0];
NSLog([NSString stringWithFormat:@"minValue=%.1f",[myOutlet maxValue]]);

}
- (IBAction)button2:(id)sender;
{
[myOutlet incrementBy:10.0];
NSLog([NSString stringWithFormat:@"%.1f",[myOutlet doubleValue]]);
}
- (IBAction)slider:(id)sender
{
}

@end