aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPFavoriteNode.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2010-12-05 19:00:55 +0000
committerstuconnolly <stuart02@gmail.com>2010-12-05 19:00:55 +0000
commite1abafb0d9401c3b62c762921362effabe14f844 (patch)
tree3739bb4d11acfc5e29173d6db4e17736e711e71e /Source/SPFavoriteNode.m
parent0dcf7859fbaf5dbb1e1a2887e46add5634d26d77 (diff)
downloadsequelpro-e1abafb0d9401c3b62c762921362effabe14f844.tar.gz
sequelpro-e1abafb0d9401c3b62c762921362effabe14f844.tar.bz2
sequelpro-e1abafb0d9401c3b62c762921362effabe14f844.zip
Add description methods to tree node classes to aid debugging.
Diffstat (limited to 'Source/SPFavoriteNode.m')
-rw-r--r--Source/SPFavoriteNode.m9
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/SPFavoriteNode.m b/Source/SPFavoriteNode.m
index 5c0d14c8..55a44653 100644
--- a/Source/SPFavoriteNode.m
+++ b/Source/SPFavoriteNode.m
@@ -67,6 +67,15 @@
return node;
}
+
+#pragma mark -
+#pragma mark Other
+
+- (NSString *)description
+{
+ return [NSString stringWithFormat:@"<%@: %p ('%@')>", [self className], self, [[self nodeFavorite] objectForKey:SPFavoriteNameKey]];
+}
+
#pragma mark -
- (void)dealloc