• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: CoreData Best Practices
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >CoreData Best Practices (From: James Clause <email@hidden>)

  • Prev by Date: Overlay windows
  • Next by Date: Re: printf to cocoa
  • Previous by thread: CoreData Best Practices
  • Next by thread: Re: CoreData Best Practices
  • Index(es):
    • Date
    • Thread