diff options
-rw-r--r-- | Source/SPConnectionController.h | 3 | ||||
-rw-r--r-- | Source/SPConnectionController.m | 16 |
2 files changed, 9 insertions, 10 deletions
diff --git a/Source/SPConnectionController.h b/Source/SPConnectionController.h index 590349bc..b6212dc0 100644 --- a/Source/SPConnectionController.h +++ b/Source/SPConnectionController.h @@ -184,7 +184,6 @@ @property (readwrite, retain) NSString *connectionSSHKeychainItemAccount; @property (readonly, assign) BOOL isConnecting; -@property (readonly, assign) NSString *favoritesPBoardType; - (id)initWithDocument:(SPDatabaseDocument *)document; @@ -204,7 +203,7 @@ // Favorites interaction - (void)updateFavoriteSelection:(id)sender; -- (NSMutableDictionary *)selectedFavorite; +- (NSDictionary *)selectedFavorite; - (SPTreeNode *)selectedFavoriteNode; - (NSArray *)selectedFavoriteNodes; diff --git a/Source/SPConnectionController.m b/Source/SPConnectionController.m index 5734f3de..da828cda 100644 --- a/Source/SPConnectionController.m +++ b/Source/SPConnectionController.m @@ -40,10 +40,10 @@ #import "SPTreeNode.h" // Constants -static const NSString *SPRemoveNode = @"RemoveNode"; -static const NSString *SPImportFavorites = @"ImportFavorites"; -static const NSString *SPExportFavorites = @"ExportFavorites"; -static const NSString *SPExportFavoritesFilename = @"SequelProFavorites.plist"; +static NSString *SPRemoveNode = @"RemoveNode"; +static NSString *SPImportFavorites = @"ImportFavorites"; +static NSString *SPExportFavorites = @"ExportFavorites"; +static NSString *SPExportFavoritesFilename = @"SequelProFavorites.plist"; @interface SPConnectionController (PrivateAPI) @@ -637,7 +637,7 @@ static NSComparisonResult compareFavoritesUsingKey(id favorite1, id favorite2, v /** * Returns the selected favorite data dictionary or nil if nothing is selected. */ -- (NSMutableDictionary *)selectedFavorite +- (NSDictionary *)selectedFavorite { SPTreeNode *node = [self selectedFavoriteNode]; @@ -1202,10 +1202,10 @@ static NSComparisonResult compareFavoritesUsingKey(id favorite1, id favorite2, v // If this node only has one child and it's not another group node, don't bother proceeding if (([nodes count] == 1) && (![[nodes objectAtIndex:0] isGroup])) return; - for (SPTreeNode *node in nodes) + for (SPTreeNode *treeNode in nodes) { - if ([node isGroup]) { - [self _sortTreeNode:node usingKey:key]; + if ([treeNode isGroup]) { + [self _sortTreeNode:treeNode usingKey:key]; } } |