I have two entities pictured below. How do I fetch all of the Nodes for a certain Trip? And how do I specify the Trip that I want to fetch?

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.
Assuming you have a managed object context, you’ll fetch a group of of Trips using a fetched results controller. You can place a predicate on a fetch, and you’ll get back only the record(s) that you’ve matched. You’ll need to review the documentation on NSFetchedResultsController to learn how to obtain the Trip you want from CoreData.
Once you have a Trip, it’s easy to get your nodes. Call:
You’ll get a set back.
If you’re using a table view, it’s even easier (this assumes your fetchedResultsController is your table views data source):