aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPConnectionControllerDataSource.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2012-05-03 12:05:01 +0000
committerstuconnolly <stuart02@gmail.com>2012-05-03 12:05:01 +0000
commit83fa503079f7a049ffab9747b0360046474f3253 (patch)
tree028d0a92e558ba42e796847ab0f68d6e3037fb50 /Source/SPConnectionControllerDataSource.m
parent0d3af5fe7631325e8a892011f0595c76b1ebd49a (diff)
downloadsequelpro-83fa503079f7a049ffab9747b0360046474f3253.tar.gz
sequelpro-83fa503079f7a049ffab9747b0360046474f3253.tar.bz2
sequelpro-83fa503079f7a049ffab9747b0360046474f3253.zip
Add support for saving the state of the connection favorites outline view.
Diffstat (limited to 'Source/SPConnectionControllerDataSource.m')
-rw-r--r--Source/SPConnectionControllerDataSource.m12
1 files changed, 1 insertions, 11 deletions
diff --git a/Source/SPConnectionControllerDataSource.m b/Source/SPConnectionControllerDataSource.m
index cb9c71bf..91fd6398 100644
--- a/Source/SPConnectionControllerDataSource.m
+++ b/Source/SPConnectionControllerDataSource.m
@@ -60,7 +60,7 @@
- (id)outlineView:(NSOutlineView *)outlineView objectValueForTableColumn:(NSTableColumn *)tableColumn byItem:(id)item
{
SPTreeNode *node = (SPTreeNode *)item;
-
+
return (![node isGroup]) ? [[[node representedObject] nodeFavorite] objectForKey:SPFavoriteNameKey] : [[node representedObject] nodeName];
}
@@ -90,14 +90,4 @@
}
}
-- (id)outlineView:(NSOutlineView *)outlineView itemForPersistentObject:(id)object
-{
- return [NSKeyedUnarchiver unarchiveObjectWithData:object];
-}
-
-- (id)outlineView:(NSOutlineView *)outlineView persistentObjectForItem:(id)item
-{
- return [NSKeyedArchiver archivedDataWithRootObject:item];
-}
-
@end