GUI patches by Andreas H��schler.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22119 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2005-11-29 00:16:10 +00:00
parent b7e760df84
commit 37be3efd3a
3 changed files with 30 additions and 5 deletions

View file

@ -473,7 +473,10 @@ static Class textFieldCellClass;
}
else
{
if ([_delegate control: self
SEL sel = @selector(control:didFailToFormatString:errorDescription:);
if ([_delegate respondsToSelector: sel] &&
[_delegate control: self
didFailToFormatString: string
errorDescription: error] == YES)
{
@ -532,9 +535,14 @@ static Class textFieldCellClass;
if (wasAccepted == NO)
{
[_delegate control:self
didFailToValidatePartialString: partialString
errorDescription: error];
SEL sel = @selector(control:didFailToValidatePartialString:errorDescription:);
if ([_delegate respondsToSelector: sel])
{
[_delegate control: self
didFailToValidatePartialString: partialString
errorDescription: error];
}
}
if (newString != nil)