summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-03-11 11:03:07 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2011-03-11 11:03:07 -0800
commit3479309e59cd912a0be14d6c1c883ae5a87054a4 (patch)
treef1d9bb971fb6b4878d7237956953f25ce336cab6
parent974742b28743a6fe1a838992269dfcfa772e27d8 (diff)
Add a useful -description for CyteWebView.
-rw-r--r--CyteKit/WebView.mm4
1 files changed, 4 insertions, 0 deletions
diff --git a/CyteKit/WebView.mm b/CyteKit/WebView.mm
index 608e9e2..363b9cb 100644
--- a/CyteKit/WebView.mm
+++ b/CyteKit/WebView.mm
@@ -121,6 +121,10 @@
[super dealloc];
}
+- (NSString *) description {
+ return [NSString stringWithFormat:@"<%s: %p, %@>", class_getName([self class]), self, [[[self request] URL] absoluteString]];
+}
+
- (id<CyteWebViewDelegate>) delegate {
return (id<CyteWebViewDelegate>) [super delegate];
}