Re: Some MVC questions
Re: Some MVC questions
- Subject: Re: Some MVC questions
- From: Chris Hanson <email@hidden>
- Date: Thu, 18 Jul 2002 22:29:35 -0500
At 8:56 PM -0400 7/18/02, Koen van der Drift wrote:
>Another example of the MVC paradigm in action is the re-organization of
the node's on the drawn representation of the graph. The model doesn't
need to know how the drawing looks, nor what the co-ordinates of the drawn
nodes are -- leave that to the view objects.
So if I understand this correctly, one view iterates the array of nodes and
tells each node "hey you, draw yourself". And another window might lists
the nodes in a table, and only tells the nodes "hey you, write your name".
Not quite. The controller managing the first view will create a
subview for each one, and keep the data in these views in sync. The
controller managing the second window will reference (or act as) a
table view data source, and when that data source is queried it will
retrieve the requested information from the appropriate node.
-- Chris
--
Chris Hanson | Email: email@hidden
bDistributed.com, Inc. | Phone: +1-847-372-3955
Making Business Distributed | Fax: +1-847-589-3738
http://bdistributed.com/ | Personal Email: email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.