• 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: MVC question about updating the Model
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >MVC question about updating the Model (From: Matt DeFoor <email@hidden>)
 >Re: MVC question about updating the Model (From: Quincey Morris <email@hidden>)
 >Re: MVC question about updating the Model (From: Kyle Sluder <email@hidden>)
 >Re: MVC question about updating the Model (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: How to empty the Trash programmatically?
  • Next by Date: Re: How to empty the Trash programmatically?
  • Previous by thread: Re: MVC question about updating the Model
  • Next by thread: Problem with setting dylib paths to ship them in my app bundle
  • Index(es):
    • Date
    • Thread