开发者

Redrawing the cocoa app's main window when clicked

I made an Mac OS X cocoa app, and when I click the red button the main window disappears.

Redrawing the cocoa app's main window when clicked

However, when I clicked the icon in dock, it doesn't show the main window anymore.

Redrawing the cocoa app's main window when clicked

W开发者_开发技巧hat's wrong? How do i redraw the main window by catching what message?


You might be able to do something like this in your application delegate:

- (BOOL)applicationShouldOpenUntitledFile:(NSApplication *)sender {
    //show your window here
    return NO;
}
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜