How can i use NSSearchField for filter data that i load into program with core data ?
i want to do that from code not in interface with binding
(please give me tutorial about it)
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is probably not a more authoritative expert (outside of Apple) on Core Data than the folks at cimgf.com. Here’s a tutorial that should help you accomplish exactly what you need.
http://www.cimgf.com/2008/11/25/adding-itunes-style-search-to-your-core-data-application/
EDIT:
You can further filter the data without going back to disk by using another NSPredicate on the array. If you have a
NSFetchedResultsControllercalledmyFetchControllerand aNSPredicatenamedmyPredicateyou can do the following.