• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Newbie question - core data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Newbie question - core data


  • Subject: Newbie question - core data
  • From: Darren Wheatley <email@hidden>
  • Date: Mon, 14 Sep 2009 14:11:05 +0100

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 (email@hidden)

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:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Newbie question - core data
      • From: Stamenkovic Florijan <email@hidden>
  • Prev by Date: Re: Mac Mini or iMac for Cocoa Development?
  • Next by Date: Re: Mac Mini or iMac for Cocoa Development?
  • Previous by thread: Re: [UNSOLVED] How to observe every child entity
  • Next by thread: Re: Newbie question - core data
  • Index(es):
    • Date
    • Thread