• 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: core-data app design question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: core-data app design question


  • Subject: Re: core-data app design question
  • From: Kyle Sluder <email@hidden>
  • Date: Sat, 29 Aug 2009 20:28:22 -0700

On Aug 29, 2009, at 5:53 PM, Ben Trumbull <email@hidden> wrote:

Encoding your data this way is pushing the boundaries of violating MVC patterns by archiving UI information (NSTextView drawing information) into your model (database). That obviously doesn't work if the platform doesn't support NSTextView.

Beg to differ a but here, or at least point out that NSTextStorage is not just a view-layer class. It just doesn't happen to exist on the iPhone, so it isn't a suitable model class for this application.


And that gets into hooking up field editors to your document's text storage vs. copying that text storage and changing it atomically. NSUndoManager support makes it very clear which you want to do.

--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: 
 >re: core-data app design question (From: Ben Trumbull <email@hidden>)

  • Prev by Date: Re: Get error message about registered observers when Object receives dealloc message
  • Next by Date: Re: Applying color to template images
  • Previous by thread: re: core-data app design question
  • Next by thread: Curious about $SUBST_VARS within a SUBQUERY of a fetch request template
  • Index(es):
    • Date
    • Thread