mirror of
https://github.com/transmission/transmission
synced 2024-12-27 18:18:10 +00:00
remove another warning
This commit is contained in:
parent
3c73a86595
commit
ee634ce23d
2 changed files with 2 additions and 11 deletions
|
@ -234,8 +234,6 @@
|
||||||
|
|
||||||
- (void) prepareForUpdate: (NSNotification *) notification;
|
- (void) prepareForUpdate: (NSNotification *) notification;
|
||||||
|
|
||||||
- (NSString *) applicationSupportFolder;
|
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -307,8 +307,8 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
|
||||||
NSLog(@"Could not IORegisterForSystemPower");
|
NSLog(@"Could not IORegisterForSystemPower");
|
||||||
|
|
||||||
//load previous transfers
|
//load previous transfers
|
||||||
NSArray * history = [[NSArray alloc] initWithContentsOfFile: [[self applicationSupportFolder]
|
NSArray * history = [[NSArray alloc] initWithContentsOfFile:
|
||||||
stringByAppendingPathComponent: @"Transfers.plist"]];
|
[NSHomeDirectory() stringByAppendingPathComponent: @"/Library/Application Support/Transmission/Transfers.plist"]];
|
||||||
|
|
||||||
//old version saved transfer info in prefs file
|
//old version saved transfer info in prefs file
|
||||||
if (!history)
|
if (!history)
|
||||||
|
@ -3291,13 +3291,6 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
|
||||||
[[NSWorkspace sharedWorkspace] selectFile: location inFileViewerRootedAtPath: nil];
|
[[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
|
- (void) ipcQuit
|
||||||
{
|
{
|
||||||
fRemoteQuit = YES;
|
fRemoteQuit = YES;
|
||||||
|
|
Loading…
Reference in a new issue