开发者

How to close the front application window

I want to close the front window of my application. How i开发者_开发知识库s that done?


Try [myWindow close] or [myWindow performClose:nil].
Use [NSApplication keyWindow] to get the key window if needed. If you want just the front-most one, grab the first one from [NSApplication orderedWindows].

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜