• 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: Sandro Noël <email@hidden>
  • Date: Sun, 29 Nov 2009 20:47:13 -0500

On 2009-11-29, at 8:18 PM, Graham Cox wrote:

>
> On 30/11/2009, at 12:04 PM, Jason Stephenson wrote:
>
>> NSDocument and the document-based architecture in Cocoa is a bad example of MVC.
>
>
> As a statement that doesn't really stand up to scrutiny. Sure, you can abuse NSDocument and violate MVC, but as it comes it does not. A document might own (or be) the data model, and it might also keep a list of window controllers. How does that violate MVC? NSDocument is just 'M', and nothing more.
>
> --Graham

Graham.

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.
Sandro.

_______________________________________________

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

  • Follow-Ups:
    • Re: Apple MVC and Document Based application confusion.
      • From: Chris Hanson <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>)

  • Prev by Date: Re: RGBA UIColor Information At CGPoint?
  • Next by Date: Re: I can't supply document reference to (init) with bindings, can I?
  • 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