Fix NSActionCell implementation so that -setObjectValue: and

-setStringValue: have an effect while the cell is edited.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29010 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Wolfgang Lux 2009-11-14 22:15:31 +00:00
parent 1e0478fc15
commit 036a78c32d
4 changed files with 61 additions and 29 deletions

View file

@ -215,8 +215,17 @@ static Class controlClass;
{
[super setObjectValue: anObject];
if (_control_view)
if ([_control_view isKindOfClass: controlClass])
[(NSControl *)_control_view updateCell: self];
{
if ([_control_view isKindOfClass: controlClass])
{
if (_cell.in_editing)
{
[self _updateFieldEditor:
[(NSControl *)_control_view currentEditor]];
}
[(NSControl *)_control_view updateCell: self];
}
}
}
/**
@ -228,8 +237,17 @@ static Class controlClass;
{
[super setStringValue: aString];
if (_control_view)
if ([_control_view isKindOfClass: controlClass])
[(NSControl *)_control_view updateCell: self];
{
if ([_control_view isKindOfClass: controlClass])
{
if (_cell.in_editing)
{
[self _updateFieldEditor:
[(NSControl *)_control_view currentEditor]];
}
[(NSControl *)_control_view updateCell: self];
}
}
}
/*