[MonoTouch] IB + MonoDevelop with public outlets
Eric J. M. Smith
eric at tarkvara.org
Mon Dec 19 14:32:49 EST 2011
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.
More information about the MonoTouch
mailing list