You might want to look at Singleton . The related article contains a pretty good description, including how to implement it in Cocoa.
If Singleton doesn't make sense in your context, and you still need a global reference to your variable, you can simply put the link to it in your AppDelegate
. ( Not recommended )
Access to it can be obtained from the application at any time using:
[UIApplication sharedApplication] delegate]
source share