parentWindow
引き出しの親ウインドウを返します
@property(assign) NSWindow *parentWindowunowned(unsafe) var parentWindow: NSWindow?
解説
引き出しの親ウインドウを返します。
設定値
ウインドウ
Objective-C@property(assign) NSWindow *parentWindowunowned(unsafe) var parentWindow: NSWindow?
フレームワーク
ApplicationKit
クラス
NSDrawer
使用可能
10.0
参照
- setParentWindow:
更新時のバージョン
OS X 10.10.2
関連記事(外部サイト)
例文
#import "MyObject.h" @implementation MyObject - (IBAction)myAction1:(id)sender { [drawer open]; NSLog([[drawer parentWindow] title]); } - (IBAction)myAction2:(id)sender { [drawer close]; } @end