--
You received this message because you are subscribed to the Google Groups "iPhone Application Development Auditors" group.
To post to this group, send email to iphone-appd...@googlegroups.com.
To unsubscribe from this group, send email to iphone-appdev-aud...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/iphone-appdev-auditors?hl=en.
+ (BOOL)isOperation:(NSString *)operation {
NSSet *operationSet = [NSSet setWithObjects:@"+", @"-", @"*", @"/", @"cos", @"sin", @"sqrt", @"π", nil];
return [operationSet containsObject:operation];
}
I have one to determine if it's a single, double or no operand operation, as well as to determine if it's a variable. Hope this helps.