"on build" , , Xcode , script. , . Automator , Automator , . 2 : . pre-run ( - ), , .
:
, Objective-C, main.mm(.mm, ++ Objective-C) ++. :
using namespace std
string s = "";
cin >> s;
MainClass mc =
if(s == someCertainString){
[mc doThisACertainWay:];
}else if(s == someOtherString){
[mc doThisADifferentWay];
}
, , , ++ Obj-C. , , , #include <iostream> , ++ / .
( , ), . ++, . ( theDialog), , , . theDialog ( tf). , , . . :
MainClass mc =
NSString *str = [self.tf stringValue];
if([str equalsString:someString]){
[mc doThisInACertainWay];
} else {
[mc doThisInADifferentWay];
}