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]
.
精彩评论