[Mono-osx] Setting the Dock icon for a Mono application?

Michael Hutchinson m.j.hutchinson at gmail.com
Sun Aug 8 23:47:20 EDT 2010

On Fri, Aug 6, 2010 at 4:29 AM, Tim Martin <tim at asymptotic.co.uk> wrote:
> On Thu, 5 Aug 2010 16:31:20 -0400, "Michael Hutchinson"
> <m.j.hutchinson at gmail.com> said:
>> The Mac taskbar does not use icons from your exe, no matter how you
>> embed them. You must use an app bundle, and your Info.plist manifest
>> must specify your icns. The icns can have multiple resolutions of icon
>> in it.
> Thanks for the info. Two things about this confuse me though: Firstly,
> when I run from within MonoDevelop (no app bundle in sight) I get a
> custom icon displayed in the taskbar, only at the wrong resolution. This
> image has to be coming from somewhere.
> Secondly, I have an app bundle set up with a .icns file in the
> appropriate resolution, and I have my app within as an executable I've
> packaged together with macpack. When I run this, the bouncing icon it
> displays during loading is at the correct resolution (which must be
> taken from the .icns file specified in the info.plist). However, once
> the app finishes loading the icon is replaced with a low-resolution
> version. If it was continuing to use the version from the app bundle, I
> wouldn't expect it to change.

Ah, it sounds like the Mac Winforms core is somehow overriding the
dock icon. I don't know how one would fix this short of patching Mono
classlibs, except perhaps (hackily) re-overriding it via a P/Invoke.

Michael Hutchinson

More information about the Mono-osx mailing list