• 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
Predicate search across Core Data entities.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Predicate search across Core Data entities.


  • Subject: Predicate search across Core Data entities.
  • From: David Delmonte <email@hidden>
  • Date: Wed, 01 Feb 2012 17:39:49 -0500

Hello Everyone!

I am trying to understand if it's possible (and then how to do it) to employ a UISearchBar to find data that cuts across core data entities.

I have a model that basically has one mainEntity, then a personEntity, placeEntity, and some others.

A record in the mainEntity can have multiple people and multiple  places, so there are one to many relationships between the mainEntity and each "subEntity".

I can easily get the data from the mainEntity with a basic search, and -- without searching,  I can display the data in the subEntities fine in a tableView.

I just cannot figure how to search for a record that would include say, a mainEntity item for all "Fathers" in "France".

I would prefer to write this in code hence the post to this group instead of to the xCode group. However, if you advise me to post there, no worries..


The main entity looks like this:

attributes:

item
details
date
....

relationships:

people
place
...


The people entity looks like this:

attributes:

name
address
...

relationship (inverse):
main
_______________________________________________

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: Predicate search across Core Data entities.
      • From: Mark Woollard <email@hidden>
  • Prev by Date: Re: PDFView focus ring
  • Next by Date: Re: iCloud On OSX - Cannot save changes (Resolved?)
  • Previous by thread: Re: PDFView focus ring
  • Next by thread: Re: Predicate search across Core Data entities.
  • Index(es):
    • Date
    • Thread