Here is an example :
@protocol MouseListener
-(BOOL) mousePressed;
-(BOOL) mouseClicked;
@end
@protocol KeyboardListener
-(BOOL) keyPressed;
@end
@interface Toto : NSObject
{
...
}
@end
So in the implementation of Toto we could override these listener's methods.
No comments:
Post a Comment