mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +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
bd6cb46651
commit
ef453e89d7
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>
|
||||
|
||||
* Source/NSKeyValueCoding.m:
|
||||
|
|
|
@ -410,7 +410,7 @@ static IMP initImp;
|
|||
|
||||
if (GSObjCIsInstance(anObject))
|
||||
{
|
||||
imp = [anObject methodForSelector: releaseSel];
|
||||
imp = [c instanceMethodForSelector: releaseSel];
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue