Creating a CoreData schema / model in code

26 views
Skip to first unread message

Robert Friston

unread,
May 25, 2012, 3:06:48 AM5/25/12
to brighton-iphone-creators, Robert Friston
Hi all,

I have checked the web and all for this and I am not yet fully convinced if this is possible or not.

Basically I want to have my app run on CoreData that is populated by a Salesforce data source using REST and all that lovely ness, but the structure of the underlying SQLite database tables and fields are unknown by me the developer - this is pulled down from Salesforce as metadata.

So I can use SQLite directly I guess to manage all of this, but I would really prefer to use the CoreData abstraction layer if at all possible.

Any pointers on this? anyone know of an existing API kit I could maybe hack for this use?

Cheers
Bob

Sent from my iPad

Will Johnston

unread,
May 25, 2012, 3:19:14 AM5/25/12
to brighton-iph...@googlegroups.com
Robert
Just so happens we just did this on the last project. Go to the force.com website. They have a library built on top of restkit.
The force library is not great since you have to do your own parsing, but gets you started, the core data stuff we did ourselves.

Give me a shout if you need a hand.
Cheers
Will

Sent from my iPhone
> --
> You received this message because you are subscribed to the Google Groups "Brighton iPhone Creators" group.
> To post to this group, send email to brighton-iph...@googlegroups.com.
> To unsubscribe from this group, send email to brighton-iphone-cr...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/brighton-iphone-creators?hl=en.
>

Will Johnston

unread,
May 25, 2012, 4:01:47 AM5/25/12
to brighton-iph...@googlegroups.com

Robert Friston

unread,
May 25, 2012, 4:33:15 AM5/25/12
to brighton-iph...@googlegroups.com, Bob Friston

Hi Will,

Thanks, and that is a coincidence indeed. Did you go that Cloud-force event the other day at Excel Docklands? We were there as Tquila - the company i am now working for - quite an event.

So I am interested in the way you hooked up to CoreData! Were you able to create the xcdatamode schema dynamically as it were using code - or were you working to a known Salesforce data structure?

Maybe we could meet for a beer sometime - we might be potentially useful to each other in the future.

Cheers
Bob

Chris Ross

unread,
May 25, 2012, 4:34:48 AM5/25/12
to brighton-iph...@googlegroups.com, Bob Friston

Robert Friston

unread,
May 25, 2012, 4:40:39 AM5/25/12
to brighton-iph...@googlegroups.com

Hi Chris,

Oh man, thanks - that looks really bang on.

Cheers
Bob
Reply all
Reply to author
Forward
0 new messages