Last step of NSSecureCoding implementation.

This commit is contained in:
Damiano Galassi committed 2016-08-31 12:26:24 +02:00
1 parent 0f2057c64d
commit 0bef381148
7 files changed
+22 -13

No files matched your search

+3 -1
View File
@@ -308,6 +308,8 @@
@synthesize chapters;
#pragma mark - NSSecureCoding
- (void)encodeWithCoder:(NSCoder *)coder
{
[super encodeWithCoder:coder];
@@ -319,7 +321,7 @@
{
self = [super initWithCoder:decoder];
chapters = [[decoder decodeObjectForKey:@"chapters"] retain];
chapters = [[decoder decodeObjectOfClass:[NSMutableArray class] forKey:@"chapters"] retain];
return self;
}