Re: CoreData Best Practices
Re: CoreData Best Practices
- Subject: Re: CoreData Best Practices
- From: John Brownlow <email@hidden>
- Date: Fri, 29 Apr 2005 11:36:39 -0400
The thing to do is create separate 'author' entities and then add a
to-many relationship to the object in question. Let CoreData handle it.
It takes a bit of getting used to working with objects at this
granularity but it is worth it in the end.
On Apr 29, 2005, at 10:49 AM, James Clause wrote:
I'd like some advice on the best way to use CoreData in various
situations. I'm trying to create a BibTeX manager. The problem I'm
facing is that BibTeX allows user defined fields and multiple authors.
The obvious way to handle this is to store multiple authors as an
NSArray of NSStrings and the user defined fields in an NSDictionary.
However, these type aren't available as attributes in CoreData. The
best way I can think of to overcome this is to serialize dictionaries
and arrays and store them as data attributes. This doesn't seem to be
a solution and I wondered if anyone else had a better one.
--
John Brownlow
Deep Fried Films, Inc
http://www.johnbrownlow.com
http://www.pinkheadedbug.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden