mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-25 04:50:54 +00:00
'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
This commit is contained in:
parent
ebf13e74a0
commit
5b4e34a94e
1 changed files with 15 additions and 11 deletions
|
@ -151,17 +151,6 @@
|
||||||
- (BOOL)ignoresMultiClick;
|
- (BOOL)ignoresMultiClick;
|
||||||
- (void)setIgnoresMultiClick:(BOOL)flag;
|
- (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
|
// NSCoding protocol
|
||||||
//
|
//
|
||||||
|
@ -174,4 +163,19 @@ extern NSString *NSControlTextDidBeginEditingNotification;
|
||||||
extern NSString *NSControlTextDidEndEditingNotification;
|
extern NSString *NSControlTextDidEndEditingNotification;
|
||||||
extern NSString *NSControlTextDidChangeNotification;
|
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
|
#endif // _GNUstep_H_NSControl
|
||||||
|
|
Loading…
Reference in a new issue