Add a number to your xulrunner-based app's Mac OS X dock icon
By glazou on Tuesday 15 September 2009, 19:00 - Mozilla - Permalink
I have extracted some code from Thunderbird's nsMessengerOSXIntegration.cpp to allow my xulrunner apps to add a number to their Mac OS X dock icon. It's of course a binary component, very simple to build and use. I'll release the code here tomorrow.
Comments
Hey Daniel,
That code you're linking to is pretty out of date. I've done a bunch of work in there for TB3, see this version: http://mxr.mozilla.org/comm-central... Also, since doing that change, we noticed that the Mac APIs for doing this leak, see bug 508001, which isn't fixed yet.
Dave
@humph: well, the way you draw onto the dock icon is still the same. BTW, I wonder why that code does not use OverlayApplicationDockTileImage()...
wow, yeah, this is something I can totally use, thanks.