Yes, but I would advise defining the correct string constants, not #defines for your strings, because string constants are type safe and each reference will use the same actual string object, which improves the performance of using isEqualToString: to compare them.
To define a private string constant, you can put it in your .m file:
static NSString *const MyConstant = @"MyConstant";
To make it public, you can either put it in your .h file, or you can split the definition by putting it in your .h:
extern NSString *const MyConstant;
And this is in your .m file:
NSString *const MyConstant = @"MyConstant";
Nick lockwood
source share