mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 02:20:37 +00:00
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:
parent
b7e760df84
commit
37be3efd3a
3 changed files with 30 additions and 5 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue