• 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: Files owner vs MyController
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Files owner vs MyController (From: Ken Tozier <email@hidden>)

  • Prev by Date: Re: Unarchive consistency errors
  • Next by Date: Re: Files owner vs MyController
  • Previous by thread: Re: Files owner vs MyController
  • Next by thread: Re: Files owner vs MyController
  • Index(es):
    • Date
    • Thread