• 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 design Q - remembering Core Data selections
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MVC design Q - remembering Core Data selections


  • Subject: Re: MVC design Q - remembering Core Data selections
  • From: Jerry Krinock <email@hidden>
  • Date: Mon, 25 Jan 2010 05:13:15 -0800

I agree with Ron that this definitely looks like a user default because it's more a part of the View than the Model, and therefore should go into user defaults instead of the Core Data model.

You often find attributes like this which could go either way.  For a less certain example, consider the isItemExpanded (in the outline) state of an object in some kind of hierarchical data model.  This could be judged either as View or Model, and the correct answer follows from considering other factors in any given app.

For document-based apps, one of the important considerations is that anything you put in the model will put the document into an unsaved state and add an Undo action whenever it is changed.



_______________________________________________

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 design Q - remembering Core Data selections (From: Ken Tabb <email@hidden>)
 >Re: MVC design Q - remembering Core Data selections (From: Ken Tabb <email@hidden>)
 >Re: MVC design Q - remembering Core Data selections (From: Ron Fleckner <email@hidden>)

  • Prev by Date: Re: Weird exception
  • Next by Date: How to save/restore the screen of the window in user defaults?
  • Previous by thread: Re: MVC design Q - remembering Core Data selections
  • Next by thread: Re: MVC design Q - remembering Core Data selections
  • Index(es):
    • Date
    • Thread