0

I have a results array containing the fetch results from core data. It is an array of Dictionaries (according to NSDictionaryResultType).

The object I fetch is a car, car has name,make,model,color (which I can see all in the array). However car also has a toCarParts relationship. This NSSet contains carPart objects (wheel, tire, etc...)

How do I access this (is it faulted in the dictionary?)

William Falcon
  • 9,813
  • 14
  • 67
  • 110

1 Answers1

2

The documentation of - (void)setPropertiesToFetch:(NSArray *)values states:

The property descriptions may represent attributes, to-one relationships, or expressions.

It is therefore not possible to get the NSSet of a to-many relationship with NSDictionaryResultType.

Martin R
  • 529,903
  • 94
  • 1,240
  • 1,382