Re: Initializing views with models
Re: Initializing views with models
- Subject: Re: Initializing views with models
- From: Andreas Mayer <email@hidden>
- Date: Wed, 27 Jul 2005 05:50:09 +0200
Am 26.07.2005 um 23:07 Uhr schrieb Edwin Vane:
Perhaps I'm thinking about this wrong. The model in my case will
not be
changed by the views. The window in my case contains views that
provide
a complex visualization of the model. The elements of the view
interact
with each other to change the visualization but the underlying model
doesn't change. By 'links' I mean an actual pointer to the data the
views are using to base the visualization on. Is the model in this
case
something different? Perhaps the parameters of the visualization
itself?
This sounds like you'll need more than one model layer.
So, yes, the 'parameters of the visualization' should probably be
hold in a model object too. Otherwise you wouldn't be able to save
those parameters, for instance.
And as I said before, the view layer is not supposed to interact with
the model layer directly - at least not in any non trivial case.
That's what the controller layer is there for.
Andreas
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden