빠른 질문 :클래스의 마스터 클래스에 메시지를 보내는 방법은 무엇입니까?
내가 MainWindowController
에서 개체를 만드는 오전 :
-(id)init{
if(!_viewAbout){
[NSBundle loadNibNamed:@"About" owner:self];
[NSApp beginSheet:self.viewAbout modalForWindow:*?????* modalDelegate:self didEndSelector:NULL contextInfo:NULL];
}
return self;
}
이 내 문제는 윈도우가 생성됩니다 것을 : 내 초기화 할 정보 클래스에서
about = [[About alloc]init];
을 MainWindowController
. 내 질문은 클래스 자체가 마스터 클래스를 모르는 경우 클래스 작성자에게 메시지를 호출/보내는 방법입니다.
NSWindowControllers에는 NSWindow (self.window) 속성이 있습니다. –