From 972b59a49b3094653725de90345ae56525d9fb06 Mon Sep 17 00:00:00 2001 From: nico 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