Open Source: Active Record For Core Data Library

If you’ve developed with Ruby On Rails or similar framework then you are familiar with ActiveRecord, and you are familiar with how useful ActiveRecord is.  I remember thinking how cool it was when I first played with RoR and began using ActiveRecord.

For those unfamiliar with RoR here’s the Wikipedia definition for Active Record:

Active record is an approach to accessing data in a database. A database table or view is wrapped into a class. Thus, an object instance is tied to a single row in the table. After creation of an object, a new row is added to the table upon save. Any object loaded gets its information from the database. When an object is updated the corresponding row in the table is also updated. The wrapper class implements accessor methods or properties for each column in the table or view.

I’ve come across an excellent open source library based on the Ruby On Rails implementation of ActiveRecord from Saul Mora for Core Data retrieval known as MagicalRecord.

You can find the Github for the project along with full instructions here:
https://github.com/magicalpanda/MagicalRecord

You can read Saul’s writeup on the project on his site here:
Magical Panda releases ActiveRecord Fetching for Core Data code library

If you want the full read on Active Record from Wikipedia here:
http://en.wikipedia.org/wiki/ActiveRecord

A very useful library indeed.

©2011 iPhone, iOS 4, iPad SDK Development Tutorial and Programming Tips. All Rights Reserved.

.

DeliciousTwitterTechnoratiFacebookLinkedInEmail


Leave a Reply

Your email address will not be published. Required fields are marked *