Re: Drawing: The Right place to keep bounds
Re: Drawing: The Right place to keep bounds
- Subject: Re: Drawing: The Right place to keep bounds
- From: David Hirsch <email@hidden>
- Date: Wed, 25 Nov 2009 08:00:50 -0800
I think you are missing the point of the quote, which is that drawing
programs are an exception to the typical rule that view data must be
strictly separated from the model ("However, in this case"). When the
model data is all about visual information (drawing), then you have no
choice but to violate the rule.
On Nov 25, 2009, at 7:27 AM, Paul Bruneau wrote:
I am also pretty sure that Cocoa Design Patterns does it wrong
because it admits such:
The model in this example is deliberately kept simple to preserve
the focus on the Controller
subsystem. In most applications, properties like rectangles and
colors are user interface concerns that
don’t belong in the Model subsystem. However, in this case,
MYShapeDraw is a drawing program.
This seems like a common problem that I have had with various Cocoa
information over the years. Everything is kept simple for the sake
of the example, and I am left clueless about the correct way to do
it (or I am too dumb to see it). In the quote above, I have learned
that the rectangles don't belong in the Model subsystem. OK that's a
good start! Now, where do they belong?
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden