]> git.saurik.com Git - cydia.git/blobdiff - internals.h
Initial implementation of rating reports.
[cydia.git] / internals.h
index 90b3103d588317f7f2ab4900071ab800fc8d2345..62b46e267ed7e4e23bf06ce5c5ed46394da36de7 100644 (file)
@@ -1,9 +1,10 @@
 - (NSMethodSignature *) methodSignatureForSelector:(SEL)selector {
-    fprintf(stderr, "[%s]S-%s\n", self->isa->name, sel_getName(selector));
+    fprintf(stderr, "[%s]S-%s\n", class_getName(self->isa), sel_getName(selector));
     return [super methodSignatureForSelector:selector];
 }
 
 - (BOOL) respondsToSelector:(SEL)selector {
-    fprintf(stderr, "[%s]R-%s\n", self->isa->name, sel_getName(selector));
-    return [super respondsToSelector:selector];
+    BOOL responds = [super respondsToSelector:selector];
+    fprintf(stderr, "[%s]R%c%s\n", class_getName(self->isa), (responds ? '+' : '-'), sel_getName(selector));
+    return responds;
 }