After more debugging, I discovered that class SCTableViewModel is supposed to
be implementing a few protocols:
@interface SCTableViewModel : NSObject <UITableViewDataSource,
UITableViewDelegate, UIScrollViewDelegate>
So I tried to add the protocols to the C# binding:
[BaseType (typeof (NSObject))]
interface SCTableViewModel : UITableViewDataSource, UITableViewDelegate,
UIScrollViewDelegate
However, when I tried to build the api again, I get the errors below:
api.cs(52,38): error CS0527: Type `MonoTouch.UIKit.UITableViewDataSource' in
interface list is not an interface
/Developer/MonoTouch/usr/lib/mono/2.1/monotouch.dll (Location of the symbol
related to previous error)
api.cs(52,61): error CS0527: Type `MonoTouch.UIKit.UITableViewDelegate' in
interface list is not an interface
/Developer/MonoTouch/usr/lib/mono/2.1/monotouch.dll (Location of the symbol
related to previous error)
api.cs(52,82): error CS0527: Type `MonoTouch.UIKit.UIScrollViewDelegate' in
interface list is not an interface
What is the correct way to do this? Suggestion would be appreciated.
--
View this message in context:
http://monotouch.2284126.n4.nabble.com/Objective-C-protocol-binding-method-not-invoked-tp4105828p4105976.html
Sent from the MonoTouch mailing list archive at Nabble.com.
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch