Storing data locally on iOS device.

16 views
Skip to first unread message

David White

unread,
Feb 8, 2011, 1:15:14 PM2/8/11
to objectiv...@googlegroups.com
Hi,

I've only briefly looked into ObjectiveResource and the sample files. I have a few questions as I have a current iPhone application that uses a sqlite database and I was looking into creating a supporting Rails site to support the application and allow users to sync their data to the web.

My question is does ObjectiveResource allow storing of data locally? Any does it have any built in solutions for synchronization? 

If it doesn't then I think writing my own JSON requests to my server will be the answer.

Thanks

David

Wes Duff

unread,
Feb 8, 2011, 2:00:20 PM2/8/11
to objectiv...@googlegroups.com
You will have to use Core Data for storing information localaly in a
native iPhone application. This is like using a SQLlight database. You
can also use a PLIST as well if you want to do key value pairs.

> --
> You received this message because you are subscribed to the Google Groups
> "ObjectiveResource" group.
> To post to this group, send email to objectiv...@googlegroups.com.
> To unsubscribe from this group, send email to
> objectiveresou...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/objectiveresource?hl=en.
>

David White

unread,
Feb 8, 2011, 2:10:33 PM2/8/11
to objectiv...@googlegroups.com
Thanks for the reply,

I actually decided right after I posted that I should actually look through past posts for the answer. Yes CoreData seems the way, I briefly looked into CoreData a year or so ago (as I remember it's a wrapper of some kind for multiple data storage solutions?). 

With this new application I decided to go SQLite and start writing raw SQL to query the database, having been an avid Rails developer for the past 2 years writing sql seemed a step backwards.

I'll have a look into it. Maybe look at creating a more up to date sample application while I'm experimenting.

David

Mike Schwab

unread,
Feb 8, 2011, 2:53:39 PM2/8/11
to objectiv...@googlegroups.com
David,

I initially had my ObjectiveResource classes doubling as CoreData classes - but this eventually led to a bug and I ended up creating one of each per model.

-Mike


David

--

John Pope

unread,
Feb 12, 2011, 2:22:05 AM2/12/11
to objectiv...@googlegroups.com
An iPad app I built for a korean company will be on exhibition at WMC.(no it doesn't use objective resource ) its a music player. should post a video.

I will be there on the Tuesday to Friday. If anyone else is in the area or knows someone that is feel free to get in contact.


John Pope

Reply all
Reply to author
Forward
0 new messages