Simple Command Line Core Data Example
As a windows VB and then C#.Net programmer, being able to read and write to some kind of database is necessity. So I’m on a quest to learn the best methods to accomplish similar things in Cocoa. Currently I’m exploring Core Data which so far seems very promising for many tasks.There’s a great tutorial out on Apple’s developer website that shows how to build a Core Data application completely in code. This is a command line application that doesn’t use XCode’s data modeler so you get to see the components of Core Data without the distraction of a UI or a designer that is doing things behind the scenes. After going through this tutorial, I had a much better understanding. But, in the real world, you wouldn’t build the data model in code unless it was super simple like this one. So, I built a new project based on the tutorial that 1) Uses an XCode model file and 2) Uses the new Objective-C 2.0 garbage collection.
No comments yet
Leave a reply