Re: MVC question about updating the Model
Re: MVC question about updating the Model
- Subject: Re: MVC question about updating the Model
- From: Kyle Sluder <email@hidden>
- Date: Fri, 16 Apr 2010 11:42:22 -0700
On Fri, Apr 16, 2010 at 11:24 AM, Quincey Morris
<email@hidden> wrote:
> I think that in this case, if the auto-updating can *safely and correctly* be encapsulated within a single object, then it's preferable and simpler just to do so.
This is true, but it does depend on your definition of "safely and
correctly," which of course can vary over time. One of the reasons I
like to split my models is because a self-contained collection of
model objects is a lot easier to split off into a framework and
compile into other apps—or even other architectures. Very helpful when
you are porting all of your applications to a new shiny platform (in
this example, the performance characteristics of NSTimer might differ
sufficiently to warrant its replacement), or even just writing an
importer for one of your other apps.
But of course at some point you need to stop worrying about making
your code portable and just sit down and write the code. :)
--Kyle Sluder
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden