From d2d3d03ef4318b35efaa81cd72a47e1e2fbff3b0 Mon Sep 17 00:00:00 2001 From: Nicola Pero Date: Thu, 27 Jun 2002 10:52:01 +0000 Subject: [PATCH] A little bit of 'end editing' was still done after the end editing notification was posted ... causing the delegate not to be able to select the text when receiving the notification ... fixed! git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13983 72102866-910b-0410-8b05-ffd578937521 --- Source/NSTextField.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/NSTextField.m b/Source/NSTextField.m index b6c62dee6..0f4482184 100644 --- a/Source/NSTextField.m +++ b/Source/NSTextField.m @@ -455,6 +455,8 @@ static Class textFieldCellClass; [_cell endEditing: [aNotification object]]; + _text_object = nil; + d = [NSDictionary dictionaryWithObject: [aNotification object] forKey: @"NSFieldEditor"]; [nc postNotificationName: NSControlTextDidEndEditingNotification @@ -487,7 +489,6 @@ static Class textFieldCellClass; break; } } - _text_object = nil; } - (BOOL) textShouldBeginEditing: (NSText *)textObject