[MonoTouch] IB + MonoDevelop with public outlets

Karl Heinz Brehme Arredondo karl at e-magesolutions.com
Mon Dec 19 14:44:33 EST 2011


Thanks Eric, that will help.

Karl

From:  "Eric J. M. Smith" <eric at tarkvara.org>
Reply-To:  <eric at tarkvara.org>
Date:  Mon, 19 Dec 2011 14:32:49 -0500
To:  "monotouch at lists.ximian.com" <monotouch at lists.ximian.com>
Subject:  Re: [MonoTouch] IB + MonoDevelop with public outlets

On 19 December 2011 10:15, Karl Heinz Brehme Arredondo
<karl at e-magesolutions.com> wrote:
>  Is there a possibility or a way to declare an outlet public on Xcode and
>  then MonoDevelop understand it making the outlet in C# to be public? Like
>  Visual Studio when you set a control public or private.

I had the same problem, and couldn't find a way of doing this using
the MonoDevelop/XCode combination.

However, if you look in the *.Designer.cs files which are created, you
can see that that the code it generates is really pretty trivial.
I've found it easiest just to remove the Designer.cs files from my
project and code the outlets and actions by hand, making them public
or private as appropriate.  This approach is also nice because you can
open your .xib files directly in Interface Builder instead of fussing
with XCode.

Eric Smith
Tarkvara Design Inc.
_______________________________________________
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/20111219/d1957c95/attachment.html 


More information about the MonoTouch mailing list