diff options
Diffstat (limited to 'pkg/osx/LauncherManager.m')
-rw-r--r-- | pkg/osx/LauncherManager.m | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/pkg/osx/LauncherManager.m b/pkg/osx/LauncherManager.m index ff90b987..52ce7f82 100644 --- a/pkg/osx/LauncherManager.m +++ b/pkg/osx/LauncherManager.m @@ -64,7 +64,17 @@ - (void) addFileToCommandLine: (NSString *) fileName forArgument: (NSString *) args { - // TODO + NSString *newCommandLine; +printf("Add file: %s %s\n", [args UTF8String], [fileName UTF8String]); + + newCommandLine = [self->commandLineArguments stringValue]; + newCommandLine = [newCommandLine stringByAppendingString: @" "]; + newCommandLine = [newCommandLine stringByAppendingString: args]; + newCommandLine = [newCommandLine stringByAppendingString: @" \""]; + newCommandLine = [newCommandLine stringByAppendingString: fileName]; + newCommandLine = [newCommandLine stringByAppendingString: @"\""]; + + [self->commandLineArguments setStringValue: newCommandLine]; } - (void) launch: (id)sender |