arrangeInFront:
ウインドウメニューにリストされているウインドウを他のウインドウの前に持ってきます
-(void)arrangeInFront:(id)sender:
解説
ウインドウメニューにリストされているウインドウを他の(アプリケーションの)ウインドウの前に持ってきます。
返り値
( void )
なし
引数
( id )sender
送信オブジェクト
フレームワーク
ApplicationKit
クラス
NSApplication
Instance Methods
使用可能
10.0
参照
- addWindowsItem:title:filename:
- removeWindowsItem:
- makeKeyAndOrderFront: (NSWindow)
例文
#import "MyObject.h" @implementation MyObject NSTimer *timer=nil; - (IBAction)myAction:(id)sender { //5秒ごとにこのアプリのウインドウが全面になる timer = [NSTimer scheduledTimerWithTimeInterval:5.0 target:self selector:@selector(timerControl:) userInfo:nil repeats:YES]; } -(void) timerControl:(NSTimer *)timer { NSLog(@"fire"); [NSApp arrangeInFront:nil]; } @end