Last step of NSSecureCoding implementation.
This commit is contained in:
1 parent
0f2057c64d
commit
0bef381148
7 files changed
+22
-13
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user