const static NSDictionary
{quote}
error: initializer element is not constant
{quote}
+(const NSDictionary*)getNamesDictionary
{
const static NSDictionary* dic = [NSDictionary dictionaryWithObjects:[NSArray arrayWithObjects:
@"value1",
//Very long list of values
nil] forKeys:[NSArray arrayWithObjects:
@"key1",
//Very long list of keys
nil]];
return dic;
}
Can someone suggest how to remedy this?
MacBook Pro 17", 2.66 GHz i7, 4GB 1067 DDR3 RAM, OS X 10.6.4 /// iPhone 4, 32GB, iOS 4