hopefully really fix that badging issue

This commit is contained in:
Mitchell Livingston 2007-07-04 20:29:25 +00:00
parent 08cf33e10e
commit 769daba0a5
1 changed files with 3 additions and 2 deletions

View File

@ -64,13 +64,14 @@
fCompletedBadged = fCompleted;
//force image to reload - copy does not work
NSImage * icon = [NSImage imageNamed: @"NSApplicationIcon"];
NSImage * icon = [[NSImage imageNamed: @"NSApplicationIcon"] copy];
NSSize iconSize = [icon size];
if (fDockIcon)
[fDockIcon release];
fDockIcon = [[NSImage alloc] initWithSize: iconSize];
[fDockIcon addRepresentation: [icon bestRepresentationForDevice: nil]];
[icon release];
if (fCompleted > 0)
{