mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 06:51:44 +00:00
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:
parent
b3dc35f126
commit
5e2b2a2e56
2 changed files with 27 additions and 0 deletions
|
@ -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,
|
||||
|
|
|
@ -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.
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue