i wrote like this
Code: Select all
MatchExpression *exp = [MatchExpression expressionWithVarName:@"stakes" condition:[StringMatch stringMatchEquals] value:[NSString stringWithFormat:@"%d",[PlayerInfo instance].gameBuyIn]];
exp = [exp and:@"$GS" condition:[BoolMatch boolMatchEquals] value:@"false"];
and shows no problem
but in another class, when i'm using this expression it's shows syntax error about parse issue "expected expression"
the "and" code color turns into pink not cyan/blue
is there anything wrong? i already clean up and delete the derived data but still show error
for now i changed the
Code: Select all
-(MatchExpression *)and:(NSString *)varName condition:(id <IMatcher>)condition value:(id)value;
method in the MatchExpression.h into
Code: Select all
-(MatchExpression *)ands:(NSString *)varName condition:(id <IMatcher>)condition value:(id)value;
for resolving this issue, is this can affect other things?
thanks