• 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: Storing structured data in file - any easy way?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Storing structured data in file - any easy way?


  • Subject: Re: Storing structured data in file - any easy way?
  • From: Jules Colding <email@hidden>
  • Date: Fri, 11 Jul 2008 09:37:20 +0200


On 11/07/2008, at 01.28, Chris Hanson wrote:

On Jul 10, 2008, at 6:09 AM, Jules Colding wrote:

I'm trying to figure out how to write and read structured data to a specific file. I have a very bad feeling that the answer is Core Data, but I'm feeling totally at lost after having been reading up on Core Data for a couple of days by now.

That's what Core Data is for, yes.

This is what I would like to do:

1) I want to store several top-level objects.

2) A top-level object have a few optional attributes.

3) Each top-level object have two-way relationships to sub-objects.

4) Sub-objects has also a few optional attributes.

5) A top-level object may contain many sub-objects.


Obviously I would like to read and write to the data file as well as create and delete objects within. There must be a simple way to do this but I just can't figure out how...

Out of curiosity, what do you find not simple about doing the above using Core Data?


It is easy enough to create the data model using xcode, but how that connects to actual code is harder to see.

Maybe I'm just overwhelmed... I've had to learn about Sync Services, Cocoa, xcode, the Foundation framework and not to forget Objective-C, from scratch in just the last month or so. I'm new to the entire Mac development environment (I'm coming from linux) so you can imagine that my head is rather busy digesting it all. Anyway, I must say that I find it the best thought-out development environment that I've ever had the pleasure to work within.


Best regards, jules _______________________________________________

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


References: 
 >Storing structured data in file - any easy way? (From: Jules Colding <email@hidden>)
 >Re: Storing structured data in file - any easy way? (From: Chris Hanson <email@hidden>)

  • Prev by Date: Re: garbage collection and NSConnection
  • Next by Date: Re: Setting DPI of image data
  • Previous by thread: Re: Storing structured data in file - any easy way?
  • Next by thread: Re: Storing structured data in file - any easy way?
  • Index(es):
    • Date
    • Thread