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

  • Prev by Date: Re: Another NSDocument question
  • Next by Date: Re: Another NSDocument question
  • Previous by thread: Re: Initializing views with models
  • Next by thread: Creating a 2nd sheet from another sheets end handler.
  • Index(es):
    • Date
    • Thread