]> git.saurik.com Git - cydia.git/commitdiff
Fix LogBrowser logic (as it was only for testing).
authorJay Freeman (saurik) <saurik@saurik.com>
Mon, 26 Dec 2016 11:37:10 +0000 (03:37 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Mon, 26 Dec 2016 11:37:10 +0000 (03:37 -0800)
CyteKit/UCInternal.h
CyteKit/WebViewController.mm

index 62b46e267ed7e4e23bf06ce5c5ed46394da36de7..cb3ba15c8df8b779a6dea74d6895816d89a81400 100644 (file)
@@ -1,10 +1,10 @@
 - (NSMethodSignature *) methodSignatureForSelector:(SEL)selector {
-    fprintf(stderr, "[%s]S-%s\n", class_getName(self->isa), sel_getName(selector));
+    fprintf(stderr, "[%s]S-%s\n", class_getName(object_getClass(self)), sel_getName(selector));
     return [super methodSignatureForSelector:selector];
 }
 
 - (BOOL) respondsToSelector:(SEL)selector {
     BOOL responds = [super respondsToSelector:selector];
-    fprintf(stderr, "[%s]R%c%s\n", class_getName(self->isa), (responds ? '+' : '-'), sel_getName(selector));
+    fprintf(stderr, "[%s]R%c%s\n", class_getName(object_getClass(self)), (responds ? '+' : '-'), sel_getName(selector));
     return responds;
 }
index daa0a5711dfd20dbe955372f9800595b32c123ae..83c8e91edc63190142371602d31fd5d70c0cae65 100644 (file)
@@ -95,7 +95,7 @@ float CYScrollViewDecelerationRateNormal;
     // XXX: WebThreadCreateNSInvocation returns nil
 
 #if ShowInternals
-    fprintf(stderr, "[%s]R?%s\n", class_getName(self->isa), sel_getName(sel));
+    fprintf(stderr, "[%s]R?%s\n", class_getName(object_getClass(self)), sel_getName(sel));
 #endif
 
     return delegate_ == nil ? NO : [delegate_ respondsToSelector:sel];
@@ -106,7 +106,7 @@ float CYScrollViewDecelerationRateNormal;
         return method;
 
 #if ShowInternals
-    fprintf(stderr, "[%s]S?%s\n", class_getName(self->isa), sel_getName(sel));
+    fprintf(stderr, "[%s]S?%s\n", class_getName(object_getClass(self)), sel_getName(sel));
 #endif
 
     if (delegate_ != nil)
@@ -505,7 +505,7 @@ float CYScrollViewDecelerationRateNormal;
 
 - (void) webView:(WebView *)view didDecidePolicy:(CYWebPolicyDecision)decision forNavigationAction:(NSDictionary *)action request:(NSURLRequest *)request frame:(WebFrame *)frame {
 #if LogBrowser
-    NSLog(@"didDecidePolicy:%u forNavigationAction:%@ request:%@ frame:%@", decision, action, request, [request allHTTPHeaderFields], frame);
+    NSLog(@"didDecidePolicy:%u forNavigationAction:%@ request:%@ %@ frame:%@", decision, action, request, [request allHTTPHeaderFields], frame);
 #endif
 
     if ([frame parentFrame] == nil) {