get the dock badging of completed torrents working finally...seems it was an undocumented Apple bug, so this gets around that

This commit is contained in:
Mitchell Livingston 2007-05-23 19:25:51 +00:00
parent cc1394b1d6
commit e52e736e91
1 changed files with 4 additions and 1 deletions

View File

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