mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 02:50:38 +00:00
2005-01-18 16:53 Alexander Malmberg <alexander@malmberg.org>
* Source/NSCell.m (-setUpFieldEditorAttributes:): Clear the text object's string. * Source/NSControl.m (-setDoubleValue:, -setFloatValue:) (-setIntValue:, -setStringValue:, -setObjectValue:): If the receiver was being edited when the method was called, make it the first responder after changing the value. (-abortEditing): Don't clear the text object's string. * Source/NSMatrix.m (-abortEditing): Don't clear the text object's string. * Source/NSTableView.m (-abortEditing): Ditto. * Source/NSTextField.m (-abortEditing): Ditto. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20580 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
cc5de74696
commit
f282f87e88
6 changed files with 46 additions and 15 deletions
|
@ -371,7 +371,6 @@ static Class textFieldCellClass;
|
|||
{
|
||||
if (_text_object)
|
||||
{
|
||||
[_text_object setString: @""];
|
||||
[_cell endEditing: _text_object];
|
||||
_text_object = nil;
|
||||
return YES;
|
||||
|
@ -388,7 +387,7 @@ static Class textFieldCellClass;
|
|||
return nil;
|
||||
}
|
||||
|
||||
- (void) validateEditing
|
||||
- (void) validateEditing
|
||||
{
|
||||
if (_text_object)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue