From dffe1eb1b41790256e40c1bc4dd5eba92eb272b1 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Mon, 14 Mar 2011 02:59:54 -0700 Subject: Add helpful -[WebFrame description] for debugging. --- CyteKit/WebViewController.mm | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'CyteKit/WebViewController.mm') 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_; -- cgit v1.2.3