Add validation of editing for -objectValue and -attributedStringValue.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25449 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2007-09-04 13:07:04 +00:00
parent b3dc35f126
commit 5e2b2a2e56
2 changed files with 27 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2007-09-04 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSActionCell.m (-objectValue, -attributedStringValue):
Add validation of editing.
2007-08-31 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSWindow.m (-makeFirstResponder:): When parameter is nil,

View file

@ -141,6 +141,28 @@ static Class controlClass;
* Manipulating NSActionCell Values
*/
/**
* Retrieve the value of the receiver
*/
- (id)objectValue
{
if (_control_view)
if ([_control_view isKindOfClass: controlClass])
[(NSControl *)_control_view validateEditing];
return [super objectValue];
}
/**
* Retrieve the value of the receiver as an NSAttributedString.
*/
- (NSAttributedString*)attributedStringValue
{
if (_control_view)
if ([_control_view isKindOfClass: controlClass])
[(NSControl *)_control_view validateEditing];
return [super attributedStringValue];
}
/**
* Retrieve the value of the receiver as an NSString.
*/