I need to define some (static) strings that i'm going to use multiple times inside my app, I searched a little and I found that I can declare a class like this:
// Constants.h
FOUNDATION_EXPORT NSString *const MyFirstConstant;
FOUNDATION_EXPORT NSString *const MySecondConstant;
//etc.
// Constants.m
NSString *const MyFirstConstant = @"FirstConstant";
NSString *const MySecondConstant = @"SecondConstant";
And then by importing the Constants.h
in my files I can use those strings, but is it the right approach to my needs?
I'm using Objective-C