adium 4092:5978185973a1: Post a com.apple.DownloadFileFinished d...

commits at adium.im commits at adium.im
Sat Jul 30 22:32:51 UTC 2011


details:	http://hg.adium.im/adium/rev/5978185973a1
revision:	4092:5978185973a1
branch:		(none)
author:		Thijs Alkemade <thijsalkemade at gmail.com>
date:		Sun Jul 31 00:32:44 2011 +0200

Post a com.apple.DownloadFileFinished distributed notification when a file transfer finishes. This causes the Downloads stack (if it's visible and the destination) to bounce.

diffs (14 lines):

diff -r 79de47661543 -r 5978185973a1 Frameworks/Adium Framework/Source/ESFileTransfer.m
--- a/Frameworks/Adium Framework/Source/ESFileTransfer.m	Sat Jul 30 21:03:01 2011 +0200
+++ b/Frameworks/Adium Framework/Source/ESFileTransfer.m	Sun Jul 31 00:32:44 2011 +0200
@@ -258,6 +258,10 @@
 		
 		if (percentDone >= 1.0) {
 			[self setStatus:Complete_FileTransfer];
+			
+			[[NSDistributedNotificationCenter defaultCenter] postNotificationName:@"com.apple.DownloadFileFinished"
+																		   object:localFilename];
+			
 		} else if ((percentDone != 0) && (status != In_Progress_FileTransfer)) {
 			[self setStatus:In_Progress_FileTransfer];
 		}




More information about the commits mailing list