Quote:
Originally Posted by eddietr
Only issue is you can't have an actual class var in ObjC, so you have use global variables instead. Not a huge deal.
|
You mind sharing proper syntax for this? Wouldn't I just put it above the implementation?
static User currentUser;
@implementation MyViewController
So how is this different from a class var?
Quote:
Originally Posted by eddietr
So the latter ("generic", as you called it) approach is how I would generally do this. But it all depends on your project of course.
|
So
have you implemented something like this on an iphone project? It sounds like a lot of work, and something that would be worthwhile to make *very* generic (as in, a super class I could inherit from to gain this functionality for any model) and sharing with the open source community.
Of course, with the release of 3.0, we'll have CoreData, so that might make this sort of thing redundant.