Started cleanup of #includes.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29833 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2010-03-04 10:12:13 +00:00
parent 08bcaee5e4
commit c16eed5d1d
9 changed files with 205 additions and 175 deletions

View file

@ -26,8 +26,9 @@
Boston, MA 02110-1301, USA.
*/
#include "config.h"
#import "config.h"
#import <Foundation/NSCoder.h>
#import "AppKit/NSActionCell.h"
#import "AppKit/NSControl.h"
@ -208,6 +209,17 @@ static Class controlClass;
return [super intValue];
}
/**
* Retrieve the value of the receiver as an NSInteger.
*/
- (NSInteger) integerValue
{
if (_cell.in_editing && _control_view)
if ([_control_view isKindOfClass: controlClass])
[(NSControl *)_control_view validateEditing];
return [super integerValue];
}
/**
* Set the value of the receiver from anObject.
*/