Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我制作了一个 Mac OS X 可可应用程序,当我单击红色按钮时,主窗口消失了。
但是,当我单击停靠栏中的图标时,它不再显示主窗口。
怎么了?我如何通过捕获什么消息来重绘主窗口?
您可能可以在您的应用程序委托中执行以下操作:
- (BOOL)applicationShouldOpenUntitledFile:(NSApplication *)sender { //show your window here return NO; }