I have a constant defined out of class in SomeClass.h:
extern NSString *const SCImportantString;
@interface SomeClass
@end
And assign it in SomeClass.m:
NSString *const SCImportantString = @"All your base are belong to us.";
@implementation SomeClass
@end
Is there a way to access this extern constant by a string with its name? I know this is possible with class and instant variables using the valueForKey:
method.
It would turn very useful to do this while using different build configurations.