I'm trying to create a simple text editor. I need to implement the
UIKeyInput protocol on my view.
I have discovered that in Objective-C this does not work:
@interface MyView : UIView {
}
@end
- (void)insertText:(NSString *)theText {
}
- (void)deleteBackward {
}
- (void)drawRect:(CGRect)rect {
}
But this does:
@interface MyView : UIView*<UIKeyInput>* {
}
@end
- (void)insertText:(NSString *)theText {
}
- (void)deleteBackward {
}
- (void)drawRect:(CGRect)rect {
}
That is, putting the protocol in the @interface definition makes the
difference.
How do I put a <protocol> on a class?
Thanks,
jamie
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch