Commit 27e55b8f authored by Felix Paul Kühne's avatar Felix Paul Kühne

MLFile: manually implement unread setters / getters as this is crashing too...

MLFile: manually implement unread setters / getters as this is crashing too often and we should find out, why
parent 72645980
......@@ -160,7 +160,6 @@ NSString *kMLFileTypeAudio = @"audio";
@dynamic shortSummary;
@dynamic currentlyWatching;
@dynamic episodeNumber;
@dynamic unread;
@dynamic hasFetchedInfo;
@dynamic noOnlineMetaData;
@dynamic showEpisode;
......@@ -174,6 +173,26 @@ NSString *kMLFileTypeAudio = @"audio";
@dynamic genre;
@dynamic albumTrack;
- (NSNumber *)unread
{
[self willAccessValueForKey:@"unread"];
NSNumber *ret = [self primitiveValueForKey:@"unread"];
[self didAccessValueForKey:@"unread"];
return ret;
}
- (void)setUnread:(NSNumber *)unread
{
@try {
[self willChangeValueForKey:@"unread"];
[self setPrimitiveValue:@(isSafe) forKey:@"unread"];
[self didChangeValueForKey:@"unread"];
}
@catch (NSException *exception) {
APLog(@"setUnread raised exception");
}
}
- (NSNumber *)lastPosition
{
[self willAccessValueForKey:@"lastPosition"];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment