Commits

Ryan Wilcox  committed 8f7fa5a

minor formating changes

  • Participants
  • Parent commits dc33c9a

Comments (0)

Files changed (2)

File App_Utilities.h

 //
 //  App_Utilities.h
-//  KeystrokeLogger
 //
 //  Created by Ryan Wilcox on 9/23/09.
 //  Copyright 2009 Wilcox Development Solutions. Licensed under the BSD open source license, 2009
 							NSLocalizedDescriptionKey,   NSLocalizedString(@"The foo got into my bar!", @""),
 							nsErrorPlusFileInformation,
 							nil]];
-		
-		
+
+
 	*/
 #define nsErrorPlusFileInformation \
 [NSString stringWithUTF8String:__FILE__],   @"reportingFile",				\

File App_Utilities.m

 //
 //  App_Utilities.m
-//  KeystrokeLogger
 //
 //  Created by Ryan Wilcox on 9/23/09.
 //  Copyright 2009 Wilcox Development Solutions. Licensed under the BSD open source license, 2009
 	// TODO: there's probably a better way to do this... WD-rpw 09-23-2009
 	long g_result;
 	OSStatus err = Gestalt(gestaltSystemVersion, &g_result );
-	
+
 	if ( !err && g_result >= 0x00001050 ) {
 		return [NSString stringWithString:@"10.5"];
-	} 
+	}
 	else if (!err && g_result >= 0x00001040) {
 		return [NSString stringWithString:@"10.4"];
-	} 
+	}
 	else if (!err && g_result >= 0x00001030) {
 		return [NSString stringWithString:@"10.3"];
 	}
 	NSString *scriptPath = [[NSBundle mainBundle] pathForResource: scriptName ofType: @"scpt" inDirectory: inFolderBundle];
 	if (scriptPath == nil)
 		return nil;	// TODO: maybe a better error message? ie: throw exception? WD-rpw 11-05-2009
-	
+
 	NSAppleScript *theScript = [[NSAppleScript alloc] initWithContentsOfURL: [NSURL fileURLWithPath: scriptPath] error: nil];
-	
+
 	NSAppleEventDescriptor * ourRes = [theScript executeAndReturnError: errorDict];
 	[theScript release];
 	return ourRes;
 }
-	
+
 NSString* applicationSupportFolder(NSString* applicationName, BOOL shouldCreate)
 {
 	NSArray *paths = NSSearchPathForDirectoriesInDomains(NSApplicationSupportDirectory, NSUserDomainMask, YES);