[MonoTouch] Mapping an existing objective-c iPhone view-controller to C#

Duane Wandless duane at wandless.net
Thu Oct 22 12:50:05 EDT 2009


That link is the correct starting point.  Create your interface definitions
to the tapku library.  btouch is pre-release so there are issues.  But it
can work.  Also check out:
http://forums.monotouch.net/Forums/Thread.aspx?pageid=1&mid=6&ItemID=2&thread=38
http://forums.monotouch.net/Forums/Thread.aspx?pageid=1&mid=6&ItemID=2&thread=48

For me I run btouch with -outdir and then add the generated *.g.cs files to
my project.

After that you can reference the taku classes in your C# code and even
derive from them.  And you should be able to use them in InterfaceBuilder.
Just type in the class name as it appears in the g.cs files.  Though I have
not tried that on the iPhone.  IB is late binding.

Hope that helps.

On Wed, Oct 21, 2009 at 10:42 PM, Adam Langley <alangley at winscribe.com>wrote:

> I would like to utilise some Tapku controls in my mono-touch application
>
> See: http://github.com/tapku/tapkulibrary
>
> How do I go about creating C# equivalents of the Tapku controllers, and
> mapping them so that I can 'new up' the controls and add them as
> sub-views?
> (I realise I wont be able to use them in Interface Builder)
>
> I have read the bindings document:
> See: http://monotouch.net/Documentation/Binding_New_Objective-C_Types
>
> ... but I don't see how this allows me to make to existing obj-c
> classes.
>
> Can someone give me some pointers?
>
> Thanks
>
> Adam Langley
>
> _______________________________________________
> MonoTouch mailing list
> MonoTouch at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monotouch
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monotouch/attachments/20091022/f40adba2/attachment.html 


More information about the MonoTouch mailing list