I'm learning XCODE proramming. Now I have simple application that has a MainWindow.xib, MainWindowController (NSWindowController). I set MainWindow.xib's File's Ower to MainWindowController, but cannot get menu actions working. When I run the application, menu items are grayed out. And I saw this in console: Could not connect the action newDocument: to target of class NSApplication What am I doing wrong?