isSheet
解説
ウインドウはシートかどうか返します
モーダルシートであればYESを返します。
シートは、NSPanelサブクラスを使ってつくられる。
引数
フレームワーク
ApplicationKit
クラス
NSWindow
使用可能
10.1
参照
関連記事(外部サイト)
更新時バージョン
10.10
例文
#import "Controller.h" @implementation Controller - (IBAction)pushButton:(id)sender { if ([myWindow isSheet]){ [info setStringValue:@"YES"]; } else { [info setStringValue:@"NO"]; } } @end