remove another warning

This commit is contained in:
Mitchell Livingston 2007-09-22 15:27:56 +00:00
parent 3c73a86595
commit ee634ce23d
2 changed files with 2 additions and 11 deletions

View File

@ -234,8 +234,6 @@
- (void) prepareForUpdate: (NSNotification *) notification;
- (NSString *) applicationSupportFolder;
@end
#endif

View File

@ -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;