In OSX 10.5+ the application icon is drawn on the miniaturized windows.
Mac Developer Library :: AppKit Framework Reference > NSDockTile > setShowsApplicationBadge:
Miniaturized windows include the application badge by default to convey the associated application to the user. In OS X v10.5 and later, application tiles do not support the application badge. A miniaturized window with a custom view does not draw the application badge. The application icon is positioned automatically in the tile by the
NSDockTile
object.
Notice "the application icon is positioned automatically in the tile".
How can I change the application icon with objective-c? Or any other methods?