Predicate search across Core Data entities.
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