开发者

How to close the front application window

开发者 https://www.devze.com 2022-12-13 08:13 出处:网络
I want to close the front window of my application. How i开发者_开发知识库s that done?Try [myWindow close] or [myWindow performClose:nil].

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

精彩评论

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