Hi,

I'm learning Cocoa / Objective-C. Right now I'm trying to build a simple Core Data application.

I've built a helper app to read in CSV and populate an XML core data store. That works fine.

I have seen lots of examples of binding a view to core data entities so that the contents of the store are loaded into the view when the application runs. I'm comfortable with how this works.

However, I want my application to start with an empty view, then have the user enter a search string, and only then display the data that matches the search string. I know I can use NSPredicate to filter the data but don't know how to hook it up in this way.

I've read through the Core Data Programming guide, had a look through Marcus Zarra's book, but I just can't get my head around how this should work.

Is this something that I can / should do with Core Data? How do I filter the data before displaying anything in the view?

If anyone could point me at some sample code / articles etc. that might help fill in the blanks I would appreciate it.

Regards

Darren.

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to