Handling Hide/Show dock icon menu in AIR on OS X

Posted by Alan on Stack Overflow See other posts from Stack Overflow or by Alan
Published on 2010-05-31T00:11:11Z Indexed on 2010/05/31 0:22 UTC
Read the original article Hit count: 485

Filed under:
|
|
|
|

I'm trying to figure out how to access the Show/Hide option that OS X automatically adds to the dock icon menu.

The problem is that no matter what I do to hide my app, the dock icon menu will always show Hide and only if I click that option does it switch to Show. I want to have my app toggle visibility using the Invoke event but if a user hides the app that way and then right clicks the dock icon, they won't see Show, just Hide. Is there an event I can monitor for it? Or that I can trigger? I just want to have that menu option status be synced to whatever visibility status I set programatically. This has been driving me nuts!

© Stack Overflow or respective owner

Related posts about flex

Related posts about mac