I\'m developing an app just now that fetches resources from a JSON API.
all of the resources have the same base URL:
http://api.mysite.com/resources.
Personally I prefer using actual const variables rather than defines.
In a MyConstants.m file I have:
NSString *const kXYMySiteBaseURL = @"http://api.mysite.com/";
NSString *const kXYSomeOtherURL = @"http://www.google.com/";
where XY is my initials or some other "unique" prefix to avoid collisions with other constants.
Then I have a MyConstants.h file like this:
extern NSString *const kXYMySitBaseURL;
extern NSString *const kXYSomeOtherURL;
Depending on how many files need to access these constants, I might include it in the precompiled header like ColdFusion suggests in his answer.
This is how Apple defines their constants in most of the Core frameworks.