[Mono-osx] Using Db4Objects on MonoTouch

Michael Probst MProbst at mission-one.de
Wed Mar 3 11:09:17 EST 2010


Hi Joanna,

thank you for your reply!

Okay, what you are talking about is a manual binding for the CoreData Framework.
I'am currently writing on my diploma thesis (native iphone sdk vs. monotouch) .. I explained the manual binding, 
but it will be to time expensive to actually do it.

I just wanted to show an alternative (in this case "db4o") to the build in sqlite if coredata is not present..

Thanks anyway :)

-----Ursprüngliche Nachricht-----
Von: Joanna Carter [mailto:cocoasharp at carterconsulting.org.uk] 
Gesendet: Mittwoch, 3. März 2010 16:33
An: Michael Probst
Cc: mono-osx at lists.ximian.com
Betreff: Re: [Mono-osx] Using Db4Objects on MonoTouch

> Hi there.. 
> i'am currently developing a project for the iphone using monotouch.
> Cause of the missing bound of the coredata framework i tried to use the db4o
> non-relational-database.

You can use Core Data with Mono projects. I do that with Delphi Prism, although, you have to include the compiled .mom (Managed Object Model) file in the bundle.

You will need to create the object model in Xcode, compile it, using the momc tool, in the Terminal, and then translate the boilerplate code, that Xcode creates in Objective-C, into C# using the Monobjc bridge.

I was surprised how well the Monobjc bridge handled things and have a fully working Mono Core Data app.

It also keeps things simple as you can use Cocoa bindings to hook up the visuals directly to your business objects.

Joanna

--
Joanna Carter
Carter Consulting


More information about the Mono-osx mailing list