I've created a new class and i want to declare a NSDictionary containing a table of values so that it's available in the rest of my application.
I did it this way as a property of the class (modified):
NSDictionary *ell = [NSDictionary dictionaryWithObjectsAndKeys:
[[JFEllipsoid alloc] initWithRadius:6377563.396 withInvF:299.3249646], @"key1",
[[JFEllipsoid alloc] initWithRadius:6377340.189 withInvF:299.3249646], @"key2",
nil};
When i compile i get this error:
error: initializer element is not constant
How/Where can i declare this array of data so that it's available when i instance that class?