Re: Initializing views with models
Re: Initializing views with models
- Subject: Re: Initializing views with models
- From: Andreas Mayer <email@hidden>
- Date: Tue, 26 Jul 2005 22:11:55 +0200
Am 26.07.2005 um 19:53 Uhr schrieb Edwin Vane:
Should the WindowController do the
view->model linking (before the window is made visible)
Yes.
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.
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