setDisplayedWhenStopped:
プログレスバーが停止している時に表示するかをセットします
-(void)setDisplayedWhenStopped:(BOOL)isDisplayed:
解説
プログレスバーが停止している時に表示するかをセットします。
YESをセットすると、停止中でも表示します。
NOをセットすると停止中は表示しません
返り値
( void )
なし
引数
( BOOL )isDisplayed
フレームワーク
ApplicationKit
クラス
NSProgressIndicator
Instance Methods
使用可能
10.2
参照
- animationDelay
- setAnimationDelay:
例文
#import "MyObject.h" @implementation MyObject - (IBAction)button:(id)sender { [myOutlet startAnimation:sender]; } - (IBAction)button2:(id)sender; { [myOutlet stopAnimation:sender]; [myOutlet setDisplayedWhenStopped:NO]; if ([myOutlet isDisplayedWhenStopped]) { NSLog(@"!!!"); } } - (IBAction)slider:(id)sender { } @end