开发者

preventing a window from deminiaturizing from dock

开发者 https://www.devze.com 2023-01-30 22:46 出处:网络
How to prevent a window to deminiaturizing when a user click on the dock tile of the window? In one part of my application , I am miniaturizing the window and then have to ensure that user cannot demi

How to prevent a window to deminiaturizing when a user click on the dock tile of the window? In one part of my application , I am miniaturizing the window and then have to ensure that user cannot deminiaturize it for a specified time .The application has more than one wind开发者_如何学Cow.

Please suggest how to do this in cocoa.


This is against Apple's Human Interface Guidelines (see section 'Minimizing and Expanding Windows') and as a result there is almost certainly no way to do this.


You cannot. That is something the OS is doing and you can't influence it. You need to adapt your design so it's no problem if the user unhides the window.

0

精彩评论

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

关注公众号