1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-24 16:52:39 +00:00

re-add r9257 on 10.6

This commit is contained in:
Mitchell Livingston 2009-10-10 13:24:13 +00:00
parent a292153b26
commit 70acab2791
3 changed files with 5 additions and 5 deletions

View file

@ -171,13 +171,12 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
//make sure another Transmission.app isn't running already //make sure another Transmission.app isn't running already
BOOL othersRunning = NO; BOOL othersRunning = NO;
#warning enable when 10.6-only if ([NSApp isOnSnowLeopardOrBetter])
/*if ([NSApp isOnSnowLeopardOrBetter])
{ {
NSArray * apps = [NSRunningApplication runningApplicationsWithBundleIdentifier: [[NSBundle mainBundle] bundleIdentifier]]; NSArray * apps = [NSRunningApplicationSL runningApplicationsWithBundleIdentifier: [[NSBundle mainBundle] bundleIdentifier]];
othersRunning = [apps count] > 1; othersRunning = [apps count] > 1;
} }
else*/ else
{ {
NSString * bundleIdentifier = [[NSBundle mainBundle] bundleIdentifier]; NSString * bundleIdentifier = [[NSBundle mainBundle] bundleIdentifier];
const int processIdentifier = [[NSProcessInfo processInfo] processIdentifier]; const int processIdentifier = [[NSProcessInfo processInfo] processIdentifier];

View file

@ -23,6 +23,7 @@
*****************************************************************************/ *****************************************************************************/
#define QLPreviewPanelSL NSClassFromString(@"QLPreviewPanel") #define QLPreviewPanelSL NSClassFromString(@"QLPreviewPanel")
#define NSRunningApplicationSL NSClassFromString(@"NSRunningApplication")
@interface NSApplication (NSApplicationAdditions) @interface NSApplication (NSApplicationAdditions)

View file

@ -31,7 +31,7 @@
#define GROUP_SEPARATOR_HEIGHT 18.0 #define GROUP_SEPARATOR_HEIGHT 18.0
#warning revert #warning uncomment
@interface TorrentTableView : NSOutlineView //<QLPreviewPanelDataSource, QLPreviewPanelDelegate> @interface TorrentTableView : NSOutlineView //<QLPreviewPanelDataSource, QLPreviewPanelDelegate>
{ {
IBOutlet Controller * fController; IBOutlet Controller * fController;