Permalink
Browse files

Fixing example in README to use NSOperationQueue instead of just call…

…ing -start on an operation
  • Loading branch information...
1 parent 11cee66 commit b54dd95d2e0bc4d3af56105152055f276d102026 @mattt mattt committed Aug 22, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 README.md
View
@@ -19,7 +19,7 @@ NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"http
AFJSONRequestOperation *operation = [AFJSONRequestOperation operationWithRequest:request success:^(id JSON) {
NSLog(@"Name: %@ %@", [JSON valueForKeyPath:@"first_name"], [JSON valueForKeyPath:@"last_name"]);
}];
-[operation start];
+[[NSOperationQueue mainQueue] addOperation:operation];
```
### Image Request

0 comments on commit b54dd95

Please sign in to comment.