From: Jay Freeman (saurik) Date: Mon, 14 Mar 2011 09:59:54 +0000 (-0700) Subject: Add helpful -[WebFrame description] for debugging. X-Git-Tag: v1.1.0%b7~12 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/dffe1eb1b41790256e40c1bc4dd5eba92eb272b1 Add helpful -[WebFrame description] for debugging. --- diff --git a/CyteKit/WebViewController.mm b/CyteKit/WebViewController.mm index c36614c2..9003af38 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_;