Re: Initializing views with models
Re: Initializing views with models
- Subject: Re: Initializing views with models
- From: Edwin Vane <email@hidden>
- Date: Tue, 26 Jul 2005 17:07:47 -0400
- Mail-followup-to: email@hidden
> >What I'd like to happen is to make a window
> >appear but before it appears to initialize the internal views with
> >links to particular
> >model objects
>
> What do you mean by "links"?
>
> Views should not be directly connected to the model. Instead the
> controller is responsible to mediate between the model and the view.
> So the controller updates the view objects according to changes in
> the model and updates the model if a view object is modified by the
> user.
>
> Cocoa bindings and/or the new controller layer can be used to
> simplify this task.
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?
Edwin V
_______________________________________________
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