Permit setters to return values.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28295 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2009-05-23 06:00:45 +00:00
parent 95b7d44b4d
commit 1d8d31ddcd
2 changed files with 8 additions and 4 deletions

View file

@ -1,3 +1,8 @@
2009-05-23 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSKeyValueObserving.m:
Permit setters which return values.
2009-05-22 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSFileManager.m:

View file

@ -473,11 +473,10 @@ replacementForClass(Class c)
}
/*
* A setter must take three arguments (self, _cmd, value)
* and return nothing.
* A setter must take three arguments (self, _cmd, value).
* The return value (if any) is ignored.
*/
if (*[sig methodReturnType] != _C_VOID
|| [sig numberOfArguments] != 3)
if ([sig numberOfArguments] != 3)
{
continue; // Not a valid setter method.
}