开发者

Making a button do the cmd + h command

开发者 https://www.devze.com 2023-02-06 16:16 出处:网络
Hey, I was wondering if it\'s possible to make a button do the cmd + h command? This is how I was thinking.

Hey, I was wondering if it's possible to make a button do the cmd + h command?

This is how I was thinking. The app will get the information as the force quit does (Apple Logo > Force Quit) The user selected the app the user would like to hide and instead of having a force quit button I was thinking about having a hide button that does the开发者_如何学Go cmd + h.

Would this be possible?


Do you mean hide the application you are running in, or hide a different application on the system? To hide the application you are in, attach the button to either the application's or first responder's hide: method. If you want to hide a different application, you have to send a hide apple event to the application.

0

精彩评论

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