initWithWindowRef:
CarbonのWindowRefからNSWindowを返します
-(NSWindow *)initWithWindowRef:(void *)windowRef:
解説
CarbonのWindowRefからNSWindowを返します。
返り値
( NSWindow * )
ウインドウ
引数
( void * )windowRef
windowRef
フレームワーク
ApplicationKit
クラス
NSWindow
Instance Methods
使用可能
10.1
参照
- windowRef
例文
#import "Controller.h" @implementation Controller - (IBAction)pushButton:(id)sender { NSWindow *window; WindowPtr wptr; wptr = [myWindow windowRef]; window = [[NSWindow alloc] initWithWindowRef:wptr]; NSLog([window title]); } @end