mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 16:50:58 +00:00
Use +instanceMethodForSelector: to cache method for class.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@26298 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
3c81286dfd
commit
f77071d0b6
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2008-03-13 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
|
* Source/NSAutoreleasePool.m; use ([+instanceMethodForSelector:])
|
||||||
|
to cache release method implementation for a class.
|
||||||
|
|
||||||
2008-03-13 Richard Frith-Macdonald <rfm@gnu.org>
|
2008-03-13 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
* Source/NSKeyValueCoding.m:
|
* Source/NSKeyValueCoding.m:
|
||||||
|
|
|
@ -410,7 +410,7 @@ static IMP initImp;
|
||||||
|
|
||||||
if (GSObjCIsInstance(anObject))
|
if (GSObjCIsInstance(anObject))
|
||||||
{
|
{
|
||||||
imp = [anObject methodForSelector: releaseSel];
|
imp = [c instanceMethodForSelector: releaseSel];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue