• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Apple MVC and Document Based application confusion.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Apple MVC and Document Based application confusion. (From: Sandro Noël <email@hidden>)
 >Re: Apple MVC and Document Based application confusion. (From: Jason Stephenson <email@hidden>)
 >Re: Apple MVC and Document Based application confusion. (From: Graham Cox <email@hidden>)
 >Re: Apple MVC and Document Based application confusion. (From: Sandro Noël <email@hidden>)

  • Prev by Date: Re: RGBA UIColor Information At CGPoint?
  • Next by Date: Re: Apple MVC and Document Based application confusion.
  • Previous by thread: Re: Apple MVC and Document Based application confusion.
  • Next by thread: Re: Apple MVC and Document Based application confusion.
  • Index(es):
    • Date
    • Thread