usableParts
スクローラの表示状態を返します
解説
スクローラの表示状態を返します。
【NSUsableScrollerParts】
● NSNoScrollerParts なにも表示されません
● NSOnlyScrollerArrows スクロールアローのみ
● NSAllScrollerParts 全て表示されます
返り値
( NSUsableScrollerParts )
スクローラの表示状態
引数
フレームワーク
ApplicationKit
クラス
NSScroller
Instance Methods
使用可能
10.0
参照
- checkSpaceForParts
- arrowsPosition
例文
#import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { NSScroller *vScroller = [myOutlet verticalScroller]; [vScroller setFloatValue:0.5 knobProportion:0.3]; switch ([vScroller usableParts]){ case NSNoScrollerParts: NSLog(@"NSNoScrollerParts"); break; case NSOnlyScrollerArrows: NSLog(@"NSOnlyScrollerArrows"); break; case NSAllScrollerParts: NSLog(@"NSAllScrollerParts"); break; default: NSLog(@"default"); } } @end