diff options
Diffstat (limited to 'Source/SPFavoriteNode.m')
-rw-r--r-- | Source/SPFavoriteNode.m | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/SPFavoriteNode.m b/Source/SPFavoriteNode.m index b51980f7..bff760a1 100644 --- a/Source/SPFavoriteNode.m +++ b/Source/SPFavoriteNode.m @@ -81,7 +81,10 @@ static NSString *SPFavoriteNodeKey = @"SPFavoriteNode"; - (id)initWithCoder:(NSCoder *)coder { -#warning This is not a valid initializer. + if (!(self = [super init])) { + return nil; + } + [self setNodeFavorite:[coder decodeObjectForKey:SPFavoriteNodeKey]]; return self; |