NSMutableSet *validOperations = [@"sin", @"cos", @"sqrt", @"π", @"+/-",@"+", @"-", @"*",@"/",nil];
I am having an Unexpected Identifier error with this, what am I doing wrong?
Sorry, if this question seems lame, but it’s actually my first time coding with Objective-C so I don’t really know what the problem is here, so experienced programmers, please help me out!
Is this what you meant?
In order to create an
NSSetorNSMutableSet, you need to call a method. There’s no built-in syntax to create a set from a list of objects.