aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPFavoriteNode.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPFavoriteNode.m')
-rw-r--r--Source/SPFavoriteNode.m7
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/SPFavoriteNode.m b/Source/SPFavoriteNode.m
index ee40f61f..a70823f7 100644
--- a/Source/SPFavoriteNode.m
+++ b/Source/SPFavoriteNode.m
@@ -23,10 +23,11 @@
//
// More info at <http://code.google.com/p/sequel-pro/>
+#import "SPTreeNode.h"
#import "SPFavoriteNode.h"
// Constants
-static const NSString *SPFavoriteNodeKey = @"SPFavoriteNode";
+static NSString *SPFavoriteNodeKey = @"SPFavoriteNode";
@implementation SPFavoriteNode
@@ -44,7 +45,7 @@ static const NSString *SPFavoriteNodeKey = @"SPFavoriteNode";
return self;
}
-- (id)initWithDictionary:(NSDictionary *)dictionary
+- (id)initWithDictionary:(NSMutableDictionary *)dictionary
{
if ((self = [self init])) {
[self setNodeFavorite:dictionary];
@@ -53,7 +54,7 @@ static const NSString *SPFavoriteNodeKey = @"SPFavoriteNode";
return self;
}
-+ (SPFavoriteNode *)favoriteNodeWithDictionary:(NSDictionary *)dictionary
++ (SPFavoriteNode *)favoriteNodeWithDictionary:(NSMutableDictionary *)dictionary
{
return [[[self alloc] initWithDictionary:dictionary] autorelease];
}