Newbie questions
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.