Revision: 4259
http://skim-app.svn.sourceforge.net/skim-app/?rev=4259&view=rev
Author: hofman
Date: 2008-07-20 19:42:44 +0000 (Sun, 20 Jul 2008)
Log Message:
-----------
Flush class method cache after registering a method
Modified Paths:
--------------
trunk/SKUtilities.m
Modified: trunk/SKUtilities.m
===================================================================
--- trunk/SKUtilities.m 2008-07-20 19:34:05 UTC (rev 4258)
+++ trunk/SKUtilities.m 2008-07-20 19:42:44 UTC (rev 4259)
@@ -116,7 +116,13 @@
void SKRegisterMethodImplementation(Class aClass, SEL aSelector, IMP anImp,
const char *types, BOOL isInstance)
{
Class realClass = isInstance ? aClass : SK_object_getClass(aClass);
+ extern void _objc_flush_caches(Class);
+
SK_class_addMethod(realClass, aSelector, anImp, types);
+
+ // Flush the method cache, deprecated on 10.5
+ if (_objc_flush_caches != NULL)
+ _objc_flush_caches(realClass);
}
IMP SKRegisterMethodImplementationWithSelector(Class aClass, SEL aSelector,
SEL impSelector)
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit