Re: Files owner vs MyController
Re: Files owner vs MyController
- Subject: Re: Files owner vs MyController
- From: mmalcolm crawford <email@hidden>
- Date: Sun, 25 Apr 2004 13:17:42 -0700
On Apr 25, 2004, at 12:42 PM, Ken Tozier wrote:
Is it possible for the files owner to also be the controller class?
Yes. In a document-based application, for example, this will typically
be the case.
If so, what's the point of muddying up the works by creating an
unnecessary controller class?
You still have to specify a class for the file's owner.
Moreover you may wish to partition the controller's responsibilities
between specialised controllers that deal with particular UI elements
or data objects (see in particular the new NSController classes).
<
http://developer.apple.com/documentation/Cocoa/Conceptual/
LoadingResources/Concepts/SpecialElements.html>
<
http://developer.apple.com/documentation/Cocoa/Reference/
ApplicationKit/ObjC_classic/Classes/NSBundleAdditions.html>
<
http://developer.apple.com/documentation/Cocoa/Conceptual/Documents/
Tasks/FAQ.html>
("How do I subclass NSWindowController?")
mmalc
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.