summaryrefslogtreecommitdiff
path: root/CyteKit/WebViewController.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-03-14 02:59:54 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2011-03-14 05:09:11 -0700
commitdffe1eb1b41790256e40c1bc4dd5eba92eb272b1 (patch)
tree375d20b580a930a378cb8523ce8c670d8dc5b313 /CyteKit/WebViewController.mm
parent64ffa33263f912a9747b9716f04e9cdcb0b857a9 (diff)
Add helpful -[WebFrame description] for debugging.
Diffstat (limited to 'CyteKit/WebViewController.mm')
-rw-r--r--CyteKit/WebViewController.mm8
1 files changed, 8 insertions, 0 deletions
diff --git a/CyteKit/WebViewController.mm b/CyteKit/WebViewController.mm
index c36614c..9003af3 100644
--- a/CyteKit/WebViewController.mm
+++ b/CyteKit/WebViewController.mm
@@ -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_;