]> git.saurik.com Git - cydia.git/commitdiff
Add helpful -[WebFrame description] for debugging.
authorJay Freeman (saurik) <saurik@saurik.com>
Mon, 14 Mar 2011 09:59:54 +0000 (02:59 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Mon, 14 Mar 2011 12:09:11 +0000 (05:09 -0700)
CyteKit/WebViewController.mm

index c36614c2855b27ba65386ebaabdf9ca6d82f5b7e..9003af38747c3892a747ae86ebbef85a0367becb 100644 (file)
@@ -53,6 +53,14 @@ float CYScrollViewDecelerationRateNormal;
 - (void) setOfflineWebApplicationCacheEnabled:(BOOL)enabled;
 @end
 
+@implementation WebFrame (Cydia)
+
+- (NSString *) description {
+    return [NSString stringWithFormat:@"<%s: %p, %@>", class_getName([self class]), self, [[[([self provisionalDataSource] ?: [self dataSource]) request] URL] absoluteString]];
+}
+
+@end
+
 /* Indirect Delegate {{{ */
 @interface IndirectDelegate : NSObject {
     _transient volatile id delegate_;