Skip to content

Commit

Permalink
Fix tag reading on High Sierra
Browse files Browse the repository at this point in the history
  • Loading branch information
griff committed Sep 27, 2017
1 parent b635b53 commit 35f4f80
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Framework/src/MZTaskOperation.m
Expand Up @@ -21,6 +21,24 @@ + (NSSet *)keyPathsForValuesAffectingIsExecuting
return [NSSet setWithObjects:@"executing", nil];
}

+ (BOOL)automaticallyNotifiesObserversForKey:(NSString *)theKey
{
if ([theKey isEqualToString:@"isFinished"]) {
return YES;
}
if ([theKey isEqualToString:@"finished"]) {
return YES;
}
if ([theKey isEqualToString:@"executing"]) {
return YES;
}
if ([theKey isEqualToString:@"isExecuting"]) {
return YES;
}
BOOL o = [super automaticallyNotifiesObserversForKey: theKey];
return o;
}

+ (id)taskOperation
{
return [[[self alloc] init] autorelease];
Expand Down

0 comments on commit 35f4f80

Please sign in to comment.