Creating a constant dictionary object
I would like to accomplish something like what is being done in this post: Constants in Objective-C however, i would like to construct an NSDictionary. if i do something like: constants.h extern NSArray *const mFooKeys; extern NSArray *const mFooObjects; extern NSDictionary *const mFooDictionary; constants.m NSArray *const mFooKeys = [[NSArray alloc] initWithObjects: @"Foo", @"Bar", @"Baz", nil]; NSArray *const mFooObjects = [[NSArray alloc] initWithObjects: @"1", @"2", @"3", nil]; NSDictionary *const mFooDictionary = [[NSDictionary alloc] dictionaryWithObjects:mFooObjects forKeys:mFooKeys];