Skip to content

Commit

Permalink
Add custom -description implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
SoneeJohn committed Feb 19, 2020
1 parent a9e0159 commit b473f4f
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
7 changes: 7 additions & 0 deletions XCDYouTubeKit/XCDURLGetOperation.m
Original file line number Diff line number Diff line change
Expand Up @@ -158,4 +158,11 @@ - (void) URLSession:(NSURLSession *)session task:(NSURLSessionTask *)dataTask di
[self finishWithError:error];
}

#pragma mark - NSObject

- (NSString *) description
{
return [NSString stringWithFormat:@"<%@: %p> %@", self.class, self, self.url];
}

@end
7 changes: 7 additions & 0 deletions XCDYouTubeKit/XCDURLHeadOperation.m
Original file line number Diff line number Diff line change
Expand Up @@ -102,4 +102,11 @@ - (void) cancel
self.isFinished = YES;
}

#pragma mark - NSObject

- (NSString *) description
{
return [NSString stringWithFormat:@"<%@: %p> %@", self.class, self, self.url];
}

@end
7 changes: 7 additions & 0 deletions XCDYouTubeKit/XCDYouTubeVideoQueryOperation.m
Original file line number Diff line number Diff line change
Expand Up @@ -206,4 +206,11 @@ - (void) finish
self.isFinished = YES;
}

#pragma mark - NSObject

- (NSString *) description
{
return [NSString stringWithFormat:@"<%@: %p> %@", self.class, self, self.video];
}

@end

0 comments on commit b473f4f

Please sign in to comment.