macOS/iOS API解説

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

目次

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