From ebf13e74a074d65df647fb91c24fc9f646297134 Mon Sep 17 00:00:00 2001 From: Nicola Pero Date: Sun, 14 Nov 1999 03:17:52 +0000 Subject: [PATCH] Mainly removed useless implementation of 'methods implemented by the delegate'; minor bug fix too. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5173 72102866-910b-0410-8b05-ffd578937521 --- Source/NSControl.m | 31 +++---------------------------- 1 file changed, 3 insertions(+), 28 deletions(-) diff --git a/Source/NSControl.m b/Source/NSControl.m index 325b5dac1..594bfd28d 100644 --- a/Source/NSControl.m +++ b/Source/NSControl.m @@ -191,6 +191,8 @@ static Class cellClass; - (void) setStringValue: (NSString *)aString { + [self abortEditing]; + [[self selectedCell] setStringValue: aString]; [self setNeedsDisplay: YES]; } @@ -282,7 +284,7 @@ static Class cellClass; - (void) validateEditing { -} // FIX ME +} /* * Resizing the Control @@ -487,33 +489,6 @@ static Class cellClass; { } -/* - * Methods Implemented by the Delegate - */ -- (BOOL) control: (NSControl *)control - textShouldBeginEditing: (NSText *)fieldEditor -{ - return NO; -} - -- (BOOL) control: (NSControl *)control - textShouldEndEditing: (NSText *)fieldEditor -{ - return NO; -} - -- (void) controlTextDidBeginEditing: (NSNotification *)aNotification -{ -} - -- (void) controlTextDidEndEditing: (NSNotification *)aNotification -{ -} - -- (void) controlTextDidChange: (NSNotification *)aNotification -{ -} - /* * NSCoding protocol */