• 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
Newbie questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Newbie questions


  • Subject: Newbie questions
  • From: Ted Lowery <email@hidden>
  • Date: Mon, 23 Dec 2002 10:41:24 -0500

Hi all-

This seems a little confusing to me. In the MVC paradigm of cocoa development, should I consider "myDocument" for a doc-based application to be the model or the controller for my nib? I've been thinking it was the model, since it knows how to load and save the data for the document, but as I add more functionality, there's no clear way to access the controller from outside the nib, however I can access the [window document] which makes me think myDocument is the controller. If that's the case, I guess I should refactor the data loading behavior to another object, that myDocument (as a controller) knows how to access.

Am I on the right path, or still confused?

Thanks for all the help.

Cheers, Ted
_______________________________________________
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.

  • Follow-Ups:
    • Re: Newbie questions
      • From: Mike Ferris <email@hidden>
    • Re: Newbie questions
      • From: j o a r <email@hidden>
  • Prev by Date: Help with First Responder
  • Next by Date: Re: Help with First Responder
  • Previous by thread: Re: Help with First Responder
  • Next by thread: Re: Newbie questions
  • Index(es):
    • Date
    • Thread