Adding -description to AFURLConnectionOperation

This commit is contained in:
Mattt Thompson 2012-01-23 08:35:43 -08:00
parent 83afa2c734
commit 21e907cb98

View file

@ -191,6 +191,10 @@ static inline BOOL AFStateTransitionIsValid(AFOperationState fromState, AFOperat
[super dealloc];
}
- (NSString *)description {
return [NSString stringWithFormat:@"<%@: %p, state: %@, cancelled: %@ request: %@, response: %@>", NSStringFromClass([self class]), self, AFKeyPathFromOperationState(self.state), ([self isCancelled] ? @"YES" : @"NO"), self.request, self.response];
}
- (void)setCompletionBlock:(void (^)(void))block {
[self.lock lock];
if (!block) {