mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-02 09:31:07 +00:00
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:
parent
37524b9c19
commit
1bf97bc92e
2 changed files with 8 additions and 4 deletions
|
@ -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>
|
2009-05-22 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
* Source/NSFileManager.m:
|
* Source/NSFileManager.m:
|
||||||
|
|
|
@ -473,11 +473,10 @@ replacementForClass(Class c)
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* A setter must take three arguments (self, _cmd, value)
|
* A setter must take three arguments (self, _cmd, value).
|
||||||
* and return nothing.
|
* The return value (if any) is ignored.
|
||||||
*/
|
*/
|
||||||
if (*[sig methodReturnType] != _C_VOID
|
if ([sig numberOfArguments] != 3)
|
||||||
|| [sig numberOfArguments] != 3)
|
|
||||||
{
|
{
|
||||||
continue; // Not a valid setter method.
|
continue; // Not a valid setter method.
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue