Skip to content
This repository

Fix documentation mistake #443

Closed
wants to merge 1 commit into from

2 participants

Alex Dunn Tony Arnold
Alex Dunn

fix #399

Tony Arnold
Owner

Hi @thoughtadvances — the code as it stands in the documentation is incorrect, however if you want to do a quick search and return an array containing the result, MR_findAllWithPredicate: is the right method to use. Thanks for pointing out the problem.

Tony Arnold tonyarnold closed this April 20, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Apr 03, 2013
Alex Dunn Fix MR_fetch method call, fix #399 4fe11b7
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  README.md
2  README.md
Source Rendered
@@ -206,7 +206,7 @@ If you want to be more specific with your search, you can send in a predicate:
206 206
 
207 207
 	NSPredicate *peopleFilter = [NSPredicate predicateWithFormat:@"Department IN %@", departments];
208 208
 
209  
-	NSArray *people = [Person MR_fetchAllWithPredicate:peopleFilter];
  209
+	NSFetchRequest *peopleRequest = [Person MR_requestAllWithPredicate:peopleFilter];
210 210
 
211 211
 For each of these single line calls, the full stack of NSFetchRequest, NSSortDescriptors and a simple default error handling scheme (ie. logging to the console) is created.
212 212
 
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.