Search code examples
cocoamacosmacos-carbon

preventing a window from deminiaturizing from dock


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 window.

Please suggest how to do this in cocoa.


Solution

  • 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.