iPhone Sqlite Persistence for Objects is a project to enable applications developed with the official iPhone SDK to persist and retrieve business objects to and from an SQLite data file. Works with both the iPhone or iPod Touch.
Be the first to post a text review of iPhone Sqlite Persistence for Objects. Rate and review a project by clicking thumbs up or thumbs down in the right column.
I have uploaded the source code project to the CVS repository. It is an XCode project for a Cocoa Touch application, which on startup runs some unit tests against the persistence functionality to verify it is working correctly. Ideally, I would like to have the code implemented as a Cocoa Touch framework so that it's easy for a developer to link to, but at the moment I can't find any information on how to do this, or even if it's possible using the current version of the iPhone SDK. So at the moment to use the persistence in your own project, you'll need to copy the contents of the appropriate source files (the files beginning with ISP* under the Classes->Persistence branch) to your project and #import the required .h files. See the ISPUnitTest files for what you'll need to #import. Basic functionality is working at the moment: A simple object graph can be persisted, and references to other persistent objects seem to work OK. For example: 1. Create object A 2. Create object B 3. Set a reference to object B within A 4. Save Both A and B are saved and restored correctly, and also the reference to B in A is restored correctly. I'm currently working on 1-many collections (ie object A can have a collection of references to other objects), and expect to have this completed soon. -- mysticwhiskey
Copyright © 2009 Geeknet, Inc. All rights reserved. Terms of Use
Thanks for your rating!
Would you also like to write a review?