Re: core-data app design question
Re: core-data app design question
- Subject: Re: core-data app design question
- From: Michael Thon <email@hidden>
- Date: Sat, 29 Aug 2009 07:44:52 +0200
On Aug 28, 2009, at 8:37 AM, Martin Hewitson wrote:
Dear list,
I have a question, or rather, I'm looking for advice, on the design
of an application. Essentially I'm wanting to write a labbook-type
application. My plan was to use core-data for the model. In the
model will be an Entry entity. Each entry will have a one-to-one
relationship to a Content entity. The Content entity will just (at
the moment) contain a single attribute (data) which will be binary
data. Implementing this on the Mac I planned to use NSTextView to
provide a rich-text entry for the data attribute. Now comes the
problem. I want to make a Cocoa Touch version of the app, and make
then synchronize over Mobile me. The problem is I see no way to
handle the NSAttributedString that will be stored in the data
attribute on the iPhone.
Does anyone have any advice as to how I might go about this? I was
considering dropping back to plain text, but am loath to do this.
Best wishes,
Martin
If you have two entities with one-to-one relationships to each other
you could probably just merge them into one entity. I have seen note
taking applications that store the actual note content as an RTFD
document on the file system and then, presumably, store a path to the
document in the core data store.
cheers
Mike
_______________________________________________
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