Hiding dock icon on OSX is impossible?
How can I hide the dock icon for an Air application on OSX?
I've tried editing the info.plist for my application and adding LSUIElement=1 (or true, etc), but it doesn't work reliably at all. Sometimes, the first time I run my app the dock icon shows up but after that the dock icon is hidden; sometimes, the dock icon always remains. nativeApplication.dockIcon doesn't let me do what I need, it only lets me change an existing bitmap, not hide the dock entry entirely. And even when it does get hidden from the dock, the (system) menu bar still shows up, which is very strange.
For other applications, this seems to work -- so I can only assume that the Air runtime is doing
TransformProcessType(&psn, kProcessTransformToForegroundApplication); at runtime to forcibly show its own dock icon, so how can I stop that happening? (context: I have another app which launches my air app and provides services to the air app via a socket -- I want the launcher app to be what's in the dock, so that people who do "pin to dock" will pin the launcher, not just the air part. So I want to hide the air app from the dock and have my launcher be the only thing that shows up).
