statusDescription depends on status (and error)

This commit is contained in:
Kelvin Sherlock 2021-07-02 17:38:36 -04:00
parent 796b1f2fc8
commit 9ab4b8373d
1 changed files with 2 additions and 8 deletions

View File

@ -619,15 +619,9 @@ static NSInteger TaskStatusCode(NSURLSessionTask *task) {
}
}
#if 0
// in practice, error and status set concurrently.
+(NSSet *)keyPathsForValuesAffectingStatus {
static NSSet *set = nil;
if (!set) set = [NSSet setWithObjects: @"error", nil];
return set;
+(NSSet *)keyPathsForValuesAffectingStatusDescription {
return [NSSet setWithObjects: @"error", @"status", nil];
}
#endif
-(NSString *)statusDescription {
static NSString *Names[] = {