Yup you need to define them on another cs file, like extensions.cs and define the constants on each class as needed, you can check my Admob binding on https://github.com/dalexsoto/Monotouch-AdMob-Bindings witch handles that specific case.
Alex Soto On Aug 29, 2011, at 12:06 PM, Jeff Stedfast wrote: > Hi Guido, > > You probably wouldn't provide that in a btouch input file, you'd probably > define that as a static property or something in a manually written .cs file. > > Jeff > > On Mon, Aug 29, 2011 at 10:41 AM, Guido Van Hoecke <[email protected]> wrote: > Hi, > > What is the suggested way of handling #define statements in Objective-C header > files? Some of these are not pure constants, but macros that just facilitate > life. But C# does not support this type of macros. > > As an example following line from The GoogleAdMobAdsSDK header file > GADBannerView.h : > > #define GAD_SIZE_320x50 CGSizeMake(320, 50) > > How do I declare this in my btouch input file? > > TIA, > > Guido > _______________________________________________ > MonoTouch mailing list > [email protected] > http://lists.ximian.com/mailman/listinfo/monotouch > > _______________________________________________ > MonoTouch mailing list > [email protected] > http://lists.ximian.com/mailman/listinfo/monotouch
_______________________________________________ MonoTouch mailing list [email protected] http://lists.ximian.com/mailman/listinfo/monotouch
