macOS/iOS API解説

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

目次

animate:

プログレスインジケータのアニメーションを少し動かします
-(void)animate:(id)sender:

解説

処理時間などが確定できないとき(床屋のポール状態)のプログレスインジケータのアニメーションを少し動かします。

返り値

( void )

なし

引数

( id )sender

オブジェクト

フレームワーク

ApplicationKit

クラス

NSProgressIndicator

Instance Methods

使用可能

10.0

参照

- animationDelay
- setAnimationDelay:

例文

#import "MyObject.h"

@implementation MyObject

- (IBAction)button:(id)sender
{
if ([myOutlet controlSize] == NSRegularControlSize){
[myOutlet setControlSize:NSSmallControlSize];
}else{
[myOutlet setControlSize:NSRegularControlSize];
}
}
- (IBAction)button2:(id)sender;
{
[myOutlet animate:nil];


}
- (IBAction)slider:(id)sender
{
}

@end