Revision: 4365
          http://skim-app.svn.sourceforge.net/skim-app/?rev=4365&view=rev
Author:   hofman
Date:     2008-08-06 23:57:44 +0000 (Wed, 06 Aug 2008)

Log Message:
-----------
rename option

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

Modified: trunk/SKRuntime.h
===================================================================
--- trunk/SKRuntime.h   2008-08-06 23:43:49 UTC (rev 4364)
+++ trunk/SKRuntime.h   2008-08-06 23:57:44 UTC (rev 4365)
@@ -49,9 +49,9 @@
     } while (0);
 
 enum {
-    SKSetOrReplace,
+    SKAddOrReplace,
     SKReplaceOnly,
-    SKSetOnly
+    SKAddOnly
 };
 
 extern IMP SKSetMethodImplementation(Class aClass, SEL aSelector, IMP anImp, 
const char *types, BOOL isInstance, int options);

Modified: trunk/SKRuntime.m
===================================================================
--- trunk/SKRuntime.m   2008-08-06 23:43:49 UTC (rev 4364)
+++ trunk/SKRuntime.m   2008-08-06 23:57:44 UTC (rev 4365)
@@ -136,7 +136,7 @@
             if (types == NULL)
                 types = SK_method_getTypeEncoding(method);
         }
-        if (types != NULL && (options != SKSetOnly || imp == NULL) && (options 
!= SKReplaceOnly || imp != NULL))
+        if (types != NULL && (options != SKAddOnly || imp == NULL) && (options 
!= SKReplaceOnly || imp != NULL))
             SK_class_replaceMethod(isInstance ? aClass : 
SK_object_getClass(aClass), aSelector, anImp, types);
     }
     return imp;
@@ -148,7 +148,7 @@
 }
 
 extern IMP SKAddInstanceMethodImplementation(Class aClass, SEL aSelector, IMP 
anImp, const char *types) {
-    return SKSetMethodImplementation(aClass, aSelector, anImp, types, YES, 
SKSetOnly);
+    return SKSetMethodImplementation(aClass, aSelector, anImp, types, YES, 
SKAddOnly);
 }
 
 extern IMP SKReplaceInstanceMethodImplementation(Class aClass, SEL aSelector, 
IMP anImp) {
@@ -156,7 +156,7 @@
 }
 
 extern IMP SKAddInstanceMethodImplementationFromSelector(Class aClass, SEL 
aSelector, SEL impSelector) {
-    return SKSetMethodImplementationFromSelector(aClass, aSelector, 
impSelector, YES, SKSetOnly);
+    return SKSetMethodImplementationFromSelector(aClass, aSelector, 
impSelector, YES, SKAddOnly);
 }
 
 extern IMP SKReplaceInstanceMethodImplementationFromSelector(Class aClass, SEL 
aSelector, SEL impSelector) {
@@ -164,7 +164,7 @@
 }
 
 extern IMP SKAddClassMethodImplementation(Class aClass, SEL aSelector, IMP 
anImp, const char *types) {
-    return SKSetMethodImplementation(aClass, aSelector, anImp, types, NO, 
SKSetOnly);
+    return SKSetMethodImplementation(aClass, aSelector, anImp, types, NO, 
SKAddOnly);
 }
 
 extern IMP SKReplaceClassMethodImplementation(Class aClass, SEL aSelector, IMP 
anImp) {
@@ -172,7 +172,7 @@
 }
 
 extern IMP SKAddClassMethodImplementationFromSelector(Class aClass, SEL 
aSelector, SEL impSelector) {
-    return SKSetMethodImplementationFromSelector(aClass, aSelector, 
impSelector, NO, SKSetOnly);
+    return SKSetMethodImplementationFromSelector(aClass, aSelector, 
impSelector, NO, SKAddOnly);
 }
 
 extern IMP SKReplaceClassMethodImplementationFromSelector(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

Reply via email to