Hi!
I'm developing a Cocoa (Touch) app and there's certain data (like own device information and a list of locations) that I have to persist between different views and controllers.
I thought of storing it as instance variables in my App Delegate, but addressing the delegate is quite cumbersome (no joy typing [[[UIApplication sharedApplication] delegate] locations]
everytime I want to access the locations array, and it is lot of places), so I thought of introducing some kind of alias (a la NSApp) for the delegate, but except for NSApp I haven't seen this very often in other Cocoa apps.
I also thought of going one step further and introducing aliases for my singleton classes, so instead of [State sharedState]
, why not rename the class to _State
and make a single instance of it called State?