zach.holmquist.me

Hi. I am Zach.

I am a Salt Lake City Web Developer. This site serves as a collection of scraps from around the Internet that I find interesting.

Emphasis in Web Development,  , and things that are curious and interesting.

♫ now playing

Loading Artist.

Loading Track.
live. auto-refresh.
2 July 2009

iPhone 3.0 CoreData : Where the heck is the Data?

I attended a training for iPhone App Development, where I was introduced to the kinda complex world of CoreData - which was recently added to iPhone OS 3.0. I was hooked the moment the incredibly smart and local Cocoa Genius Dave Delong mentioned that CoreData is a better way to store data - heck - even Evernote was using it in their next app update!

So I found myself late last night tinkering with writing basic data to CoreData, and for the life of me couldn't figure out where it was hiding or how to get to it from XCode. Finally I tracked it down hiding inside of a SQLite Database :>

/Users//Library/Application Support/iPhone Simulator/User/Applications//Documents

Now before Dave Delong has a fit - finding this data comes with a disclaimer: CoreData *is* not SQLite! SQLite is merely the underpinnings of it all . . . but it is *not* SQLite. Phew, all the CocoaHeads can sleep peacefully tonight!

With the proper tools you too can see where the heck your data is going! Personally, I like the Adobe Air App Lita, but I know there are literally dozens of other apps that do this.

I must note . . . sadly . . . that I am not yet a CoreData Expert - it is a trial by fire kinda thing. But I figure I'd leave my notes along the way. Maybe someone will correct my mistakes or drop a tip in the comments *wink* *wink* . . . that way we all win.