Hi Dermotos, Yes, a close equivalent to Obj-C Categories, in C#, is Extension Methods. See here:
http://msdn.microsoft.com/en-us/library/bb383977.aspx - Chris On 18 April 2012 12:54, dermotos <[email protected]> wrote: > Is there an equivalent of Objective C Categories in Monotouch? > Specifically I need to override the draw method in a NavigationBar to > custom > draw it (in iOS4). > I cannot merely subclass the NavigationBar and override the Draw method, as > I cannot then set my custom version as the NavigationBar on the > NavigationController, as the property is read-only. > > Obj-c tutorials describe using Categories to overcome this problem, but > obviously id like to do this in MT. > > -- > View this message in context: > http://monotouch.2284126.n4.nabble.com/Obj-C-Categories-in-Monotouch-tp4567460p4567460.html > Sent from the MonoTouch mailing list archive at Nabble.com. > _______________________________________________ > MonoTouch mailing list > [email protected] > http://lists.ximian.com/mailman/listinfo/monotouch >
_______________________________________________ MonoTouch mailing list [email protected] http://lists.ximian.com/mailman/listinfo/monotouch
