Documentation tweaks

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14760 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2002-10-13 10:26:57 +00:00
parent d73d397164
commit 92867e201f
3 changed files with 31 additions and 21 deletions

View file

@ -551,9 +551,9 @@ static Class textFieldCellClass;
return YES;
}
- (BOOL) textShouldEndEditing: (NSText *)aTextObject
- (BOOL) textShouldEndEditing: (NSText*)textObject
{
if ([_cell isEntryAcceptable: [aTextObject text]] == NO)
if ([_cell isEntryAcceptable: [textObject text]] == NO)
{
[self sendAction: _error_action to: [self target]];
return NO;
@ -562,16 +562,14 @@ static Class textFieldCellClass;
if ([_delegate respondsToSelector:
@selector(control:textShouldEndEditing:)])
{
if ([_delegate control: self
textShouldEndEditing: aTextObject] == NO)
if ([_delegate control: self textShouldEndEditing: textObject] == NO)
{
NSBeep ();
return NO;
}
}
if ([_delegate respondsToSelector:
@selector(control:isValidObject:)] == YES)
if ([_delegate respondsToSelector: @selector(control:isValidObject:)] == YES)
{
NSFormatter *formatter;
id newObjectValue;
@ -579,12 +577,13 @@ static Class textFieldCellClass;
formatter = [_cell formatter];
if ([formatter getObjectValue: &newObjectValue
forString: [_text_object text]
errorDescription: NULL] == YES)
forString: [_text_object text]
errorDescription: NULL] == YES)
{
if ([_delegate control: self
isValidObject: newObjectValue] == NO)
return NO;
if ([_delegate control: self isValidObject: newObjectValue] == NO)
{
return NO;
}
}
}