X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5d553c56c979f9a9817282795bc563c3c16e5cdc..3f93a7508ea292a0ba836eefcccf20a716eaf135:/src/cocoa/utilsexc.mm diff --git a/src/cocoa/utilsexc.mm b/src/cocoa/utilsexc.mm index a6fa6e499a..5d7fe82113 100644 --- a/src/cocoa/utilsexc.mm +++ b/src/cocoa/utilsexc.mm @@ -15,13 +15,10 @@ #ifndef WX_PRECOMP #endif #include "wx/unix/execute.h" +#include "wx/utils.h" #if 0 -#ifdef __GNUG__ -#pragma implementation -#endif - #include "wx/utils.h" #include "wx/process.h" @@ -158,21 +155,21 @@ long wxExecute(const wxString& command, NSArray* theQuoteArguments = [wxNSStringWithWxString(command) componentsSeparatedByString:@"\""]; - NSMutableArray* theSeperatedArguments = + NSMutableArray* theSeparatedArguments = [NSMutableArray arrayWithCapacity:10]; for (unsigned i = 0; i < [theQuoteArguments count]; ++i) { - [theSeperatedArguments addObjectsFromArray: + [theSeparatedArguments addObjectsFromArray: [[theQuoteArguments objectAtIndex:i] componentsSeparatedByString:@" "] ]; if(++i < [theQuoteArguments count]) - [theSeperatedArguments addObject:[theQuoteArguments objectAtIndex:i]]; + [theSeparatedArguments addObject:[theQuoteArguments objectAtIndex:i]]; } - [theTask setLaunchPath:[theSeperatedArguments objectAtIndex:0]]; - [theTask setArguments:theSeperatedArguments]; + [theTask setLaunchPath:[theSeparatedArguments objectAtIndex:0]]; + [theTask setArguments:theSeparatedArguments]; [theTask launch]; if(sync & wxEXEC_ASYNC)