Re: Apple MVC and Document Based application confusion.

2009-11-29 Thread Sandro Noël
Thank you all, it cleared things up quite a bit. Best regards. Sandro. ___ 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.ap

Re: Apple MVC and Document Based application confusion.

2009-11-29 Thread Graham Cox
On 30/11/2009, at 1:35 PM, Jason Stephenson wrote: > NSDocument doesn't merely represent the document's data as in a "pure" MVC > design, rather it is a controller for the document's data. The subsection of > the Document-Based Applications Overview entitled "The Role of NSDocument" > makes th

Re: Apple MVC and Document Based application confusion.

2009-11-29 Thread Jason Stephenson
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 docum

Re: Apple MVC and Document Based application confusion.

2009-11-29 Thread Bill Garrison
On Nov 29, 2009, at 6:58 PM, Sandro Noël wrote: From what I read the MyDocument Class is supposed to be a model controller, not the window controller. The MyDocument Class is supposed to be able to host an array of window controllers. NSDocument has the capability to host an array of windo

Re: Apple MVC and Document Based application confusion.

2009-11-29 Thread Chris Hanson
On Nov 29, 2009, at 5:47 PM, Sandro Noël 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

Re: Apple MVC and Document Based application confusion.

2009-11-29 Thread Sandro Noël
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 vi

Re: Apple MVC and Document Based application confusion.

2009-11-29 Thread Graham Cox
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

Re: Apple MVC and Document Based application confusion.

2009-11-29 Thread Jason Stephenson
Sandro Noël wrote: Hello. I'm reading COCOA Design Patterns from Eric M. Buck & Donald A. Yacktman. and i'm having a hard time applying the principle in my architecture. for example, if i create a new document based application in XCode, the MyDocument xib file binds the window outlet to the M

Apple MVC and Document Based application confusion.

2009-11-29 Thread Sandro Noël
Hello. I'm reading COCOA Design Patterns from Eric M. Buck & Donald A. Yacktman. and i'm having a hard time applying the principle in my architecture. for example, if i create a new document based application in XCode, the MyDocument xib file binds the window outlet to the MyDocument Class. Fr