Revision: 7196
          http://skim-app.svn.sourceforge.net/skim-app/?rev=7196&view=rev
Author:   hofman
Date:     2011-03-30 11:43:46 +0000 (Wed, 30 Mar 2011)

Log Message:
-----------
rename method swizzling functions

Modified Paths:
--------------
    trunk/SKRuntime.h
    trunk/SKRuntime.m

Modified: trunk/SKRuntime.h
===================================================================
--- trunk/SKRuntime.h   2011-03-30 11:41:26 UTC (rev 7195)
+++ trunk/SKRuntime.h   2011-03-30 11:43:46 UTC (rev 7196)
@@ -41,7 +41,7 @@
 
 enum { SKAddOrReplace, SKReplaceOnly, SKAddOnly };
 
-extern IMP SKSetMethodImplementation(Class aClass, SEL aSelector, IMP anImp, 
const char *types, NSInteger options);
+extern IMP SKSetInstanceMethodImplementation(Class aClass, SEL aSelector, IMP 
anImp, const char *types, NSInteger options);
 extern IMP SKSetMethodImplementationFromSelector(Class aClass, SEL aSelector, 
SEL impSelector, NSInteger options);
 
 extern IMP SKReplaceInstanceMethodImplementation(Class aClass, SEL aSelector, 
IMP anImp);

Modified: trunk/SKRuntime.m
===================================================================
--- trunk/SKRuntime.m   2011-03-30 11:41:26 UTC (rev 7195)
+++ trunk/SKRuntime.m   2011-03-30 11:43:46 UTC (rev 7196)
@@ -41,7 +41,7 @@
 
 
 // this is essentially class_replaceMethod, but returns any inherited 
implementation, and can get the types from an inherited implementation
-IMP SKSetMethodImplementation(Class aClass, SEL aSelector, IMP anImp, const 
char *types, NSInteger options) {
+IMP SKSetInstanceMethodImplementation(Class aClass, SEL aSelector, IMP anImp, 
const char *types, NSInteger options) {
     IMP imp = NULL;
     if (anImp) {
         Method method = class_getInstanceMethod(aClass, aSelector);
@@ -58,15 +58,15 @@
 
 IMP SKSetMethodImplementationFromSelector(Class aClass, SEL aSelector, SEL 
impSelector, NSInteger options) {
     Method method = class_getInstanceMethod(aClass, impSelector);
-    return method ? SKSetMethodImplementation(aClass, aSelector, 
method_getImplementation(method), method_getTypeEncoding(method), options) : 
NULL;
+    return method ? SKSetInstanceMethodImplementation(aClass, aSelector, 
method_getImplementation(method), method_getTypeEncoding(method), options) : 
NULL;
 }
 
 IMP SKReplaceInstanceMethodImplementation(Class aClass, SEL aSelector, IMP 
anImp) {
-    return SKSetMethodImplementation(aClass, aSelector, anImp, NULL, 
SKReplaceOnly);
+    return SKSetInstanceMethodImplementation(aClass, aSelector, anImp, NULL, 
SKReplaceOnly);
 }
 
 void SKAddInstanceMethodImplementation(Class aClass, SEL aSelector, IMP anImp, 
const char *types) {
-    SKSetMethodImplementation(aClass, aSelector, anImp, types, SKAddOnly);
+    SKSetInstanceMethodImplementation(aClass, aSelector, anImp, types, 
SKAddOnly);
 }
 
 IMP SKReplaceInstanceMethodImplementationFromSelector(Class aClass, SEL 
aSelector, SEL impSelector) {


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to