New NSWindow from application - mission impossible?
问题 OK, what am I doing wrong? 1. Created cocoa app and appDelegate named: window2AppDelegate 2. window2AppDelegate.h #import "PrefWindowController.h" @interface window2AppDelegate : NSObject <NSApplicationDelegate> { NSWindow *window; PrefWindowController * ctrl; } @property (assign) IBOutlet NSWindow *window; - (IBAction) buttonClick:(id)sender; - (IBAction) buttonCloseClick:(id)sender; @end 3. in xib editor, window connected to window controller - set to appdelegate, buttonclick actions to