From 5b4e34a94efac493fe32b666912d6aa080b497fe Mon Sep 17 00:00:00 2001 From: Nicola Pero Date: Sun, 14 Nov 1999 03:18:46 +0000 Subject: [PATCH] 'Methods implemented by the delegate' moved from class methods to an informal protocol definition. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5174 72102866-910b-0410-8b05-ffd578937521 --- Headers/gnustep/gui/NSControl.h | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/Headers/gnustep/gui/NSControl.h b/Headers/gnustep/gui/NSControl.h index 01a8a8c63..ba095acf4 100644 --- a/Headers/gnustep/gui/NSControl.h +++ b/Headers/gnustep/gui/NSControl.h @@ -151,17 +151,6 @@ - (BOOL)ignoresMultiClick; - (void)setIgnoresMultiClick:(BOOL)flag; -// -// Methods Implemented by the Delegate -// -- (BOOL)control:(NSControl *)control - textShouldBeginEditing:(NSText *)fieldEditor; -- (BOOL)control:(NSControl *)control - textShouldEndEditing:(NSText *)fieldEditor; -- (void)controlTextDidBeginEditing:(NSNotification *)aNotification; -- (void)controlTextDidEndEditing:(NSNotification *)aNotification; -- (void)controlTextDidChange:(NSNotification *)aNotification; - // // NSCoding protocol // @@ -174,4 +163,19 @@ extern NSString *NSControlTextDidBeginEditingNotification; extern NSString *NSControlTextDidEndEditingNotification; extern NSString *NSControlTextDidChangeNotification; + +// +// Methods Implemented by the Delegate +// +@interface NSObject (NSControlDelegate) +- (BOOL)control:(NSControl *)control + textShouldBeginEditing:(NSText *)fieldEditor; +- (BOOL)control:(NSControl *)control + textShouldEndEditing:(NSText *)fieldEditor; +- (void)controlTextDidBeginEditing:(NSNotification *)aNotification; +- (void)controlTextDidEndEditing:(NSNotification *)aNotification; +- (void)controlTextDidChange:(NSNotification *)aNotification; +@end + + #endif // _GNUstep_H_NSControl