Re: A REALLY Basic question
Re: A REALLY Basic question
- Subject: Re: A REALLY Basic question
- From: Sherm Pendley <email@hidden>
- Date: Sat, 20 Jul 2002 15:24:20 -0400
On Saturday, July 20, 2002, at 02:53 PM, Mark Malson wrote:
at least call it from two different places to do the same thing.
Sounds to me like that's precisely how it should be. Your saveDocument
and sheet response methods should be in the controller object, and both
of them should call a method in the model object that does the actual
work of saving your document.
Situations like you're describing are *precisely* the reason to use MVC.
With MVC, the model object knows how to save its data to a file, and it
can be told to do so by any number of controller objects, in any number
of different situations.
sherm--
_______________________________________________
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.