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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to