Re: Storing structured data in file - any easy way?
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: Thu, 10 Jul 2008 16:05:24 +0200
On 10/07/2008, at 15.18, Graham Cox wrote:
Sounds like you want to do archiving - it can handle all the object
relationships you mention. Check out NSKeyedArchiver and the
NSCoding protocol.
http://developer.apple.com/documentation/Cocoa/Conceptual/Archiving/Concepts/archives.html
Thanks a lot. I'll take a look.
Best regards,
jules
On 10 Jul 2008, at 11:09 pm, Jules Colding wrote:
Hi,
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.
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...
Thanks a lot in advance,
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
_______________________________________________
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