Re: core-data app design question
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