Connect Window Controller Outlet to Window
问题 I am trying to create a simple modal dialog in XCode 4. I have created the xib, created the NSWindowController derived class and made it the class in the File's Owner of the xib. The part I am having trouble with is physically connecting the window outlet as mentioned in the answers to questions: How to give focus to NSWindow loaded from NIB? Why do I have to call showWindow on my NSWindowController twice on 10.5? and in Apple documentation here: http://developer.apple.com/library/mac/