Post the NSControlTextDidEndEditingNotification *after* actually ending

editing :-)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13979 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicola Pero 2002-06-26 17:00:33 +00:00
parent 763c6093fa
commit d024336615
3 changed files with 14 additions and 15 deletions

View file

@ -280,8 +280,7 @@ static Class textFieldCellClass;
if ([self isSelectable] == NO)
return;
// This could happen if someone pressed the mouse
// on the borders
/* This could happen if someone pressed the mouse on the borders. */
if (_text_object)
return;
@ -306,6 +305,7 @@ static Class textFieldCellClass;
delegate: self
event: theEvent];
}
- (BOOL) acceptsFirstMouse: (NSEvent *)aEvent
{
return YES;
@ -453,14 +453,14 @@ static Class textFieldCellClass;
[self validateEditing];
[_cell endEditing: [aNotification object]];
d = [NSDictionary dictionaryWithObject: [aNotification object]
forKey: @"NSFieldEditor"];
[nc postNotificationName: NSControlTextDidEndEditingNotification
object: self
userInfo: d];
[_cell endEditing: [aNotification object]];
textMovement = [[aNotification userInfo] objectForKey: @"NSTextMovement"];
if (textMovement)
{