On Aug 29, 2009, at 5:53 PM, Ben Trumbull <trumb...@apple.com> 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 (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com