As-You-Type-Searching with Core Data / NSFetchedResultsController
- by Snej
I implemented an as-you-type-searching (text search on single attribute) by fetching with performFetch: after each given character by the user. The performFetch: is running in a background thread to avoid keyboard freezes.
But while typing many useless fetches are started. A NSOperationQueue might be an option, but I wonder if there are other approaches for this quite usual search behavior.
What's best practice to notice when fetching is done and the table view is updated with the previous fetch to start a new fetch?