Advertise Books Events Forum News Social Networking Support Us

sdkIQ for iPhone
($4.99)

Shape Up
($0.99)

Your First iPhone App
($1.99)

iVidCam Free
(free)

Kid Art
($0.99)

iPUBQUIZ
(£1.19)

ArtStudio
($3.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 04-20-2009, 10:11 PM   #4 (permalink)
coondog
Goon (on a good day)
 
Join Date: Apr 2009
Location: California
Posts: 55
Default

Quote:
Originally Posted by Dollopp View Post
Hi,

you should put the code which you are talking about in what is called a model class, which is a class which contains and processes data for your applications. This is one of the three classes in the Model View Controller paradigm. Just google Model View Controller, check it in the apple online documentation, search this forum for it and check YouTube (there is a small series of humorous videos on the subject). It is one of the main programming paradigms on the iphone.

Hope this helps

M.J.
Thanks for the reply, M.J.

I actually have a pretty decent grasp of the MVC paradigm. My question is more about implementation of the paradigm in a more specific context.

It makes sense that I would create an instance of some model class, initialize the class' ivars and do specific operations on that data from within the class via it's instance methods. What I'm hazy about is where to create the instance and initialize it's data if multiple views rely on that object at any given time during the app's lifecycle.

Did that make any sense?

Chris.
coondog is offline   Reply With Quote
 
Enter the iPhone App Challenge!  Win $500!
» Advertisements
» Online Users: 233
10 members and 223 guests
Ajameel, alexz1, Bertrand21, DonomaGames, Erle, jyu, Karts9, Oliver Drobnik, SirGeraint, smilespray
Most users ever online was 779, 05-11-2009 at 09:55 AM.
» Stats
Members: 24,279
Threads: 39,072
Posts: 171,336
Top Poster: smasher (2,575)
Welcome to our newest member, yogen81
Powered by vBadvanced CMPS v3.1.0

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