Re: Apple MVC and Document Based application confusion.
Re: Apple MVC and Document Based application confusion.
- Subject: Re: Apple MVC and Document Based application confusion.
- From: Chris Hanson <email@hidden>
- Date: Sun, 29 Nov 2009 18:06:26 -0800
On Nov 29, 2009, at 5:47 PM, Sandro Noël <email@hidden>
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@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