From a76423ac1e8a86518ef27dc02528a2ede4264826 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Tue, 23 Oct 2007 11:41:03 +0000 Subject: [PATCH] fix notification to update info --- Transmission.xcodeproj/project.pbxproj | 2 +- macosx/Controller.m | 3 --- macosx/Torrent.m | 4 ++-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/Transmission.xcodeproj/project.pbxproj b/Transmission.xcodeproj/project.pbxproj index 27f465fe7..ad97fa2b4 100644 --- a/Transmission.xcodeproj/project.pbxproj +++ b/Transmission.xcodeproj/project.pbxproj @@ -364,7 +364,7 @@ 4DFBC2DD09C0970D00D5C571 /* Torrent.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Torrent.h; path = macosx/Torrent.h; sourceTree = ""; }; 4DFBC2DE09C0970D00D5C571 /* Torrent.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = Torrent.m; path = macosx/Torrent.m; sourceTree = ""; }; 8D1107310486CEB800E47090 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist; name = Info.plist; path = macosx/Info.plist; sourceTree = ""; }; - 8D1107320486CEB800E47090 /* Transmission.app */ = {isa = PBXFileReference; includeInIndex = 0; lastKnownFileType = wrapper.application; path = Transmission.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 8D1107320486CEB800E47090 /* Transmission.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Transmission.app; sourceTree = BUILT_PRODUCTS_DIR; }; A200B8390A2263BA007BBB1E /* InfoWindowController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = InfoWindowController.h; path = macosx/InfoWindowController.h; sourceTree = ""; }; A200B83A0A2263BA007BBB1E /* InfoWindowController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = InfoWindowController.m; path = macosx/InfoWindowController.m; sourceTree = ""; }; A2041D520C9AC523000ACFFB /* Lock.tiff */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; name = Lock.tiff; path = macosx/Images/Lock.tiff; sourceTree = ""; }; diff --git a/macosx/Controller.m b/macosx/Controller.m index a9aaf680d..42d2ee2d8 100644 --- a/macosx/Controller.m +++ b/macosx/Controller.m @@ -374,9 +374,6 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi [nc addObserver: self selector: @selector(updateUI) name: @"UpdateUI" object: nil]; - [nc addObserver: fInfoController selector: @selector(updateInfoSettings) - name: @"UpdateInfoSettings" object: nil]; - [nc addObserver: self selector: @selector(torrentFinishedDownloading:) name: @"TorrentFinishedDownloading" object: nil]; diff --git a/macosx/Torrent.m b/macosx/Torrent.m index 44e7624a2..6417c2260 100644 --- a/macosx/Torrent.m +++ b/macosx/Torrent.m @@ -443,7 +443,7 @@ void completenessChangeCallback(tr_torrent * torrent, cp_status_t status, void * } [self changeDownloadFolder: folder]; - [[NSNotificationCenter defaultCenter] postNotificationName: @"UpdateInfoSettings" object: nil]; + [[NSNotificationCenter defaultCenter] postNotificationName: @"UpdateStats" object: nil]; [self endQuickPause]; } @@ -556,7 +556,7 @@ void completenessChangeCallback(tr_torrent * torrent, cp_status_t status, void * [self startTransfer]; [self update]; - [[NSNotificationCenter defaultCenter] postNotificationName: @"UpdateInfoSettings" object: nil]; + [[NSNotificationCenter defaultCenter] postNotificationName: @"UpdateStats" object: nil]; } - (BOOL) alertForMoveFolderAvailable