views:

315

answers:

1

Hello

Im looking for a simple (if I can call it that) mapping tool for obj-c, that maps objects and their relationships to a sqlite database. Is there any out there that acts like db4o for java? I havent found anything on google, and I think its because Im not completly sure of where to look and what to look for. Hope someone can help, because I dont want to write my own mapping tool to sqlite.

EDIT it seems like entropyDb does the job. http://code.google.com/p/entropydb/. But Im not sure yet.

I dont quite understand this line: "One cannot store instances of Cocoa classes directly. Collections (NSArray, NSSet, NSDictionary) can be stored if they are instance variables of custom objects." I read it like I cant store arrays and sets if they are instance variables of a custom object.

+3  A: 

You're looking for Core Data, which is part of the iPhone SDK.

Graham Lee
Oh. Im new to iPhone development :) Im not at all into it yet. Dont know what that is.
mslot
@mslot: well the link is to the "Introduction to Core Data", which _may_ tell you what it is...
Graham Lee
I must say that I dont get it :)
mslot
EntropyDb seems to be a db4O ripoff. http://code.google.com/p/entropydb/
mslot
Um, Core Data stores Objective C objects in a SQLite database. It's included in both OS X and iPhone OS 3.
Stephen Darlington
Stephen, that I do get. But how is it done. I cant figure it out from that link.
mslot
@mslot: there are Core Data tutorials on Apple's web site.
Graham Lee