summaryrefslogtreecommitdiff
path: root/CyteKit
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2016-12-26 03:37:10 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2016-12-26 03:37:10 -0800
commitc66799b9a7cc38772cdda9873bee8ca850173e88 (patch)
treed56e6a43b70d5696f0da6f951f287c1ccb96880b /CyteKit
parente0c35524d9e2f829122142790bc6d1ab0c0a7afb (diff)
Fix LogBrowser logic (as it was only for testing).
Diffstat (limited to 'CyteKit')
-rw-r--r--CyteKit/UCInternal.h4
-rw-r--r--CyteKit/WebViewController.mm6
2 files changed, 5 insertions, 5 deletions
diff --git a/CyteKit/UCInternal.h b/CyteKit/UCInternal.h
index 62b46e2..cb3ba15 100644
--- a/CyteKit/UCInternal.h
+++ b/CyteKit/UCInternal.h
@@ -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;
}
diff --git a/CyteKit/WebViewController.mm b/CyteKit/WebViewController.mm
index daa0a57..83c8e91 100644
--- a/CyteKit/WebViewController.mm
+++ b/CyteKit/WebViewController.mm
@@ -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) {