mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 01:30:38 +00:00
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:
parent
1e0478fc15
commit
036a78c32d
4 changed files with 61 additions and 29 deletions
|
@ -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];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue