From ee634ce23da87ea1aa4e89874c68e884cee4ab77 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Sat, 22 Sep 2007 15:27:56 +0000 Subject: [PATCH] remove another warning --- macosx/Controller.h | 2 -- macosx/Controller.m | 11 ++--------- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/macosx/Controller.h b/macosx/Controller.h index 51944f348..fbe14808c 100644 --- a/macosx/Controller.h +++ b/macosx/Controller.h @@ -234,8 +234,6 @@ - (void) prepareForUpdate: (NSNotification *) notification; -- (NSString *) applicationSupportFolder; - @end #endif diff --git a/macosx/Controller.m b/macosx/Controller.m index d9c751878..0dadb1f8e 100644 --- a/macosx/Controller.m +++ b/macosx/Controller.m @@ -307,8 +307,8 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi NSLog(@"Could not IORegisterForSystemPower"); //load previous transfers - NSArray * history = [[NSArray alloc] initWithContentsOfFile: [[self applicationSupportFolder] - stringByAppendingPathComponent: @"Transfers.plist"]]; + NSArray * history = [[NSArray alloc] initWithContentsOfFile: + [NSHomeDirectory() stringByAppendingPathComponent: @"/Library/Application Support/Transmission/Transfers.plist"]]; //old version saved transfer info in prefs file if (!history) @@ -3291,13 +3291,6 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi [[NSWorkspace sharedWorkspace] selectFile: location inFileViewerRootedAtPath: nil]; } -#warning move to additions -- (NSString *) applicationSupportFolder -{ - return [[NSSearchPathForDirectoriesInDomains(NSApplicationSupportDirectory, NSUserDomainMask, YES) objectAtIndex: 0] - stringByAppendingPathComponent: [[NSProcessInfo processInfo] processName]]; -} - - (void) ipcQuit { fRemoteQuit = YES;