[Mono-osx] [ANN] mcocoa & mobjc libraries

Jesse Jones jesjones at mindspring.com
Fri Nov 7 15:22:08 EST 2008


On Nov 7, 2008, at 6:08 AM, Andrew Brehm wrote:

>
> Hi,
>
> I tried to use mobjc a few days ago and I think I am too stupid to  
> use it
> correctly. I also found the example too complicated.

I'll update the docs to make it clearer what the role of mobjc is and  
how it is typically used. But in the meantime, mobjc acts as a bridge  
between managed code and Objective-C. User code will normally talk to  
mcocoa instead of mobjc: mobjc is used only when you cannot use the  
wrappers in mcocoa (usually because you need to make a dynamic method  
call).

The sample app in mobjc is not a good example of how to write a cocoa  
app because it does not use the wrappers in mcocoa. Therefore it's a  
bit ugly and overly complex. The animating-views example in mcocoa is  
the same app, but rewritten to use the wrappers. It's much simpler and  
nicer.
>
>
> I did figure out how to use Cocoa# but didn't have the same success  
> with
> mobjc. It looks similar to using COM objects on Windows (which I am  
> also not
> very good at).
>
> Mobjc looks very promising and from compiling and running the example
> program I am already amazed and fascinated.

If you were able to use Cocoa# you should be able to do the same with  
mcocoa.

   -- Jesse



More information about the Mono-osx mailing list