[Mono-osx] Conceptual Idea: (Semi)automatic generation of Cocoa# wrapper classes

marc hoffman mh at elitedev.com
Sun Nov 11 07:30:44 EST 2007


> As i've found out myself, recently, creating the wrapper classes needed 
> to access the Cocoa objects from managed code is a very tedious and 
> error prone process, which in tuen explains, of course, why such a small 
> portion of Cocoa is actually exposed, so far. It's mind-numbing 
> runt-work that no-one wants to do.
> 
> has anyone ever put any thought into creating a way to *automatically* 
> or semi-automatically (ie with manual adjustments) generate these 
> wrapper classes by, for example, parsing method headers from available 
> .h files or the documentation?

work in progress: http://screencast.com/t/71yxRHUCI ;). top edit is 
pasted from a random Apple Doc PDF file, bottom is auto-generated from 
the parsed Objective-C header as either Chrome or C#.

of course this is just the start; it needs to generate the body & handle 
a lot more cases then it currently does. Also, of course it only handles 
individual methods, for now...


More information about the Mono-osx mailing list