diff options
author | stuconnolly <stuart02@gmail.com> | 2011-03-13 18:50:40 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2011-03-13 18:50:40 +0000 |
commit | 1632c45fdd9d0b8fe1e0aef3e891e8bd5704df29 (patch) | |
tree | f2fc34195718108f7770900994443931b6b8807e /Source/SPFavoritesController.m | |
parent | c2cf0e39c3c59c3548bf39f0835ac552cdcd23f4 (diff) | |
download | sequelpro-1632c45fdd9d0b8fe1e0aef3e891e8bd5704df29.tar.gz sequelpro-1632c45fdd9d0b8fe1e0aef3e891e8bd5704df29.tar.bz2 sequelpro-1632c45fdd9d0b8fe1e0aef3e891e8bd5704df29.zip |
Fix issue related to dragging a node to a group node that is being renamed as well as fix all warnings related to the connection outlinew view.
Diffstat (limited to 'Source/SPFavoritesController.m')
-rw-r--r-- | Source/SPFavoritesController.m | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/SPFavoritesController.m b/Source/SPFavoritesController.m index 7080c9b9..bd16e1ad 100644 --- a/Source/SPFavoritesController.m +++ b/Source/SPFavoritesController.m @@ -25,6 +25,7 @@ #import "SPFavoritesController.h" #import "SPFavoriteNode.h" +#import "SPTreeNode.h" #import "SPGroupNode.h" #import "pthread.h" @@ -154,7 +155,7 @@ static SPFavoritesController *sharedFavoritesController = nil; * * @return The node instance that was created and added */ -- (SPTreeNode *)addFavoriteNodeWithData:(NSDictionary *)data asChildOfNode:(SPTreeNode *)parent +- (SPTreeNode *)addFavoriteNodeWithData:(NSMutableDictionary *)data asChildOfNode:(SPTreeNode *)parent { SPTreeNode *node = [SPTreeNode treeNodeWithRepresentedObject:[SPFavoriteNode favoriteNodeWithDictionary:data]]; @@ -210,9 +211,9 @@ static SPFavoritesController *sharedFavoritesController = nil; favoritesData = [[NSDictionary alloc] initWithContentsOfFile:favoritesFile]; } else { - NSDictionary *newFavorites = [NSMutableDictionary dictionaryWithObject:[NSMutableDictionary dictionaryWithObjectsAndKeys:NSLocalizedString(@"Favorites", @"favorites label"), SPFavoritesGroupNameKey, [NSArray array], SPFavoriteChildrenKey, nil] forKey:SPFavoritesRootKey]; + NSMutableDictionary *newFavorites = [NSMutableDictionary dictionaryWithObject:[NSMutableDictionary dictionaryWithObjectsAndKeys:NSLocalizedString(@"Favorites", @"favorites label"), SPFavoritesGroupNameKey, [NSArray array], SPFavoriteChildrenKey, nil] forKey:SPFavoritesRootKey]; - NSError *error = nil; + error = nil; NSString *errorString = nil; NSData *plistData = [NSPropertyListSerialization dataFromPropertyList:newFavorites |