From b54dd95d2e0bc4d3af56105152055f276d102026 Mon Sep 17 00:00:00 2001 From: Mattt Thompson Date: Mon, 22 Aug 2011 07:06:36 -0500 Subject: [PATCH] Fixing example in README to use NSOperationQueue instead of just calling -start on an operation --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a74c793..a915bdf 100644 --- a/README.md +++ b/README.md @@ -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