FROM : John Brownlow
DATE : Fri Apr 29 17:36:39 2005
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
DATE : Fri Apr 29 17:36:39 2005
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






Cocoa mail archive

