Get Updates By E-mail 

library

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.


  •  
  •  
  •  
  •  
  •  

Open Source: Library And Guide For NinePatch Image Support On iOS Platforms

  •  
  •  
  •  
  •  
  •  

The NinePatch image was introduced by Google for the Android.  The key feature of the image format is defined stretchable areas so that the image could resize to fit content without degradation.  Google has also created tools so that Ninepatch images can easily be created, and if you are developing on Android then you probably miss the lack of Ninepatch image support in the iOS SDK.

I’ve found a library that allows you to easily utilize NinePatch images within your iOS apps so you can take advantage of the usefulness of this image format, and more easily create crossplatform apps.

The library is from Tortuga22 and can be found on Github here:
https://github.com/tortuga22/Tortuga22-NinePatch

They have also written a guide with more on the NinePatch image format and how to use the library here.

You may also want to read Google’s information on the NinePatch image format.

Looks like a very useful library.


  •  
  •  
  •  
  •  
  •  

Fast Math Programming iPhone Library

  •  
  •  
  •  
  •  
  •  

I was e-mailed an interesting question, and that was whether or not if I knew there was a fast math programming library for the iPhone.

The answer to that is yes, I do know of one library which is known as the vfpmathlibrary.  The latest version of the library is included in the open source Oolong Engine.  Some extra compilation instructions can be found within the actual files themselves, and you can also look at how the Oolong projects are set up. 

A math programming library such as this one is somewhat beyond the scope of what this site is about, but for those interested in this level of optimization I found this blog post called VFP for noobs. I look forward to learning more, but have a long way to go.

From what I understand this library can provide a large increase in speed vs. the standard c math libraries so if you are pushing the envelope then it may be worth checking out.  At this point I have not seen the library used in the other open source iPhone game engines.


  •  
  •  
  •  
  •  
  •