diff options
author | stuconnolly <stuart02@gmail.com> | 2012-05-03 12:05:01 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2012-05-03 12:05:01 +0000 |
commit | 83fa503079f7a049ffab9747b0360046474f3253 (patch) | |
tree | 028d0a92e558ba42e796847ab0f68d6e3037fb50 /Source/SPConnectionControllerDataSource.m | |
parent | 0d3af5fe7631325e8a892011f0595c76b1ebd49a (diff) | |
download | sequelpro-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.m | 12 |
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 |