From e52e736e915c902559821a1d0a95c9888a752f3a Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Wed, 23 May 2007 19:25:51 +0000 Subject: [PATCH] get the dock badging of completed torrents working finally...seems it was an undocumented Apple bug, so this gets around that --- macosx/Badger.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/macosx/Badger.m b/macosx/Badger.m index 5c14af187..0d979f36f 100644 --- a/macosx/Badger.m +++ b/macosx/Badger.m @@ -80,8 +80,11 @@ { fCompletedBadged = fCompleted; + //force image to reload - copy does not work + NSSize iconSize = [fDockIcon size]; [fDockIcon release]; - fDockIcon = [[NSImage imageNamed: @"NSApplicationIcon"] copy]; + fDockIcon = [[NSImage alloc] initWithSize: iconSize]; + [fDockIcon addRepresentation: [[NSImage imageNamed: @"NSApplicationIcon"] bestRepresentationForDevice: nil]]; if (fCompleted > 0) {