get rid of one 10.5 problem

This commit is contained in:
Mitchell Livingston 2009-10-10 01:06:06 +00:00
parent 7bd3e0c297
commit 4e16e80ad6
1 changed files with 3 additions and 2 deletions

View File

@ -171,12 +171,13 @@ 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;
if ([NSApp isOnSnowLeopardOrBetter]) #warning enable when 10.6-only
/*if ([NSApp isOnSnowLeopardOrBetter])
{ {
NSArray * apps = [NSRunningApplication runningApplicationsWithBundleIdentifier: [[NSBundle mainBundle] bundleIdentifier]]; NSArray * apps = [NSRunningApplication 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];