• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Initializing views with models
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Initializing views with models
      • From: Edwin Vane <email@hidden>
References: 
 >Initializing views with models (From: Edwin Vane <email@hidden>)

  • Prev by Date: Re: Localized number formatting
  • Next by Date: Re: Initializing views with models
  • Previous by thread: Initializing views with models
  • Next by thread: Re: Initializing views with models
  • Index(es):
    • Date
    • Thread