exitFullScreenModeWithOptions:
フルスクリーンモードを解除します
-(void)exitFullScreenModeWithOptions:(NSDictionary *)options:
解説
フルスクリーンモードを解除します。
返り値
( void )
引数
( NSDictionary * )options
オプション
辞書
NSFullScreenModeAnimation
アニメーション LKAnimation
NSFullScreenModeAllScreens
全てのスクリーン? BooleanのNSNumber
10.5以降
NSFullScreenModeSetting NSFullScreenModeWindowLevel
ウインドウレベル NSNumber
10.5以降
フレームワーク
ApplicationKit
クラス
NSView
Instance Methods
使用可能
10.5
参照
例文
#import "SetImage.h" NSTimer *timer; @implementation SetImage - (IBAction)set:(id)sender { //Imageを作る NSImage *img = [NSImage imageNamed: @"NSApplicationIcon" ]; //レシーバimage(NSImageView)にimgをセットする [image setImage : img ]; /* NSFullScreenModeAnimation; NSFullScreenModeAllScreens; NSFullScreenModeSetting; NSFullScreenModeWindowLevel; */ LKAnimation *anime = [LKAnimation animation]; NSDictionary *fullscreenOption = [NSDictionary dictionaryWithObjectsAndKeys: anime,@"NSFullScreenModeAnimation", [NSNumber numberWithInteger:(NSInteger)1.0],@"NSFullScreenModeWindowLevel",nil]; //フルスクリーンモード設定 [image enterFullScreenMode:[NSScreen mainScreen] withOptions:fullscreenOption]; //1秒後に終了タイマー timer = [NSTimer scheduledTimerWithTimeInterval:1 target:self selector:@selector(timerControl) userInfo:nil repeats:NO]; } -(void) timerControl{ //フルスクリーンモード解除 [image exitFullScreenModeWithOptions:nil]; } @end