On Nov 29, 2009, at 5:47 PM, Sandro Noël <[email protected]> wrote:

I have to agree with you here, NSDocument should be just M in the MVC Pattern, but why is XCode evidently binding it as the C also in the template project.

Because not every project needs to be picture perfect in its use of various design patterns. Thus it's OK for a very simple application to treat its NSDocument subclass as a window controller too. As it grows, that can easily be refactored into a separate window controller class.

The Xcode templates are not there to represent the One True Way to write applications. They are in place to provide starting points for your own development. Where you take them is entirely up to you.

If you find yourself doing the same thing over and over when creating new projects, it can be worthwhile to set up your own project templates and start from those.

  -- Chris_______________________________________________

Cocoa-dev mailing list ([email protected])

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 [email protected]

Reply via email to