macOS/iOS API解説

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

目次

setNumberOfMajorTickMarks:

レシーバーで表示するマークの数をセットします
-(void)setNumberOfMajorTickMarks:(int)count:

解説

レシーバーで表示するマークの数をセットします。
countはマークの数と同じか小さくなくてはならない。

返り値

( void )

なし

引数

( int )count

フレームワーク

ApplicationKit

クラス

NSLevelIndicator

Instance Methods

使用可能

10.4

参照

-numberOfMajorTickMarks

例文

- (IBAction)myOutlet:sender
{
	NSLevelIndicatorCell *iCell = [tColumn dataCellForRow:0];
	[iCell setNumberOfTickMarks:5];
	
	[iCell setNumberOfMajorTickMarks:2];
	
	//アップデート用
	[tColumn setWidth:[tColumn width]+1];[tColumn setWidth:[tColumn width]-1];
	
	NSLog(@"criticalValue - %d",[iCell numberOfMajorTickMarks]);
	
}