X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/b4d89997f7c06c875a4ee9b10da0aef4e4e80dda..365d45da86873eab6dd3b3faebb54745e9eae7bb:/internals.h?ds=sidebyside diff --git a/internals.h b/internals.h index 90b3103d..62b46e26 100644 --- a/internals.h +++ b/internals.h @@ -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; }