Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 04-21-2009, 05:44 PM   #14 (permalink)
p.witty
New Member
 
Join Date: Apr 2009
Posts: 4
Default

Quote:
Originally Posted by eddietr View Post
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 View Post
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.
p.witty is offline   Reply With Quote
 

» Advertisements
» Online Users: 775
24 members and 751 guests
acegames, ADY, apatsufas, aslyworo, dabvid, ghz.rai, Graham, ilmman, IphoneSdk, iph_s, keeshux, kusreekumar, marcelglaeser, MarkC, marto1914, Ndpiparava, nfung, Pandafox, rodrigoK, RoryHarvey, technovelty, triclopus, VikMyr, zbynda
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,870
Threads: 89,225
Posts: 380,694
Top Poster: BrianSlick (7,129)
Welcome to our newest member, triclopus
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 06:43 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.