diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2011-03-14 02:59:54 -0700 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2011-03-14 05:09:11 -0700 |
commit | dffe1eb1b41790256e40c1bc4dd5eba92eb272b1 (patch) | |
tree | 375d20b580a930a378cb8523ce8c670d8dc5b313 | |
parent | 64ffa33263f912a9747b9716f04e9cdcb0b857a9 (diff) |
Add helpful -[WebFrame description] for debugging.
-rw-r--r-- | CyteKit/WebViewController.mm | 8 |
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_; |