开发者

NSWindowController problem

I created a NSWindowController(.m.h) in a cocoa project. I set the outlet o开发者_运维技巧f the NSWindowController as the window(NSWindow) in MainMenu.xib,

I found that the functions in NSWindowController.m below

- (BOOL)isWindowLoaded;
- (void)windowWillLoad;
- (void)windowDidLoad;
- (id)initWithWindow:(NSWindow*)window;

only

- (id)initWithWindow:(NSWindow*)window;

was triggered, and the value of the parameter window is 0x0.

I do not what caused this happen.

Welcome any comment.

Thanks

interdev


You need to set NSWindow's delegate connection to point to your controller, otherwise it won't receive those events.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜