I am trying to grab a relationship property of an object from a mutable array.
theNewItems[0].step is giving the error, Property 'step' found on object of type id.
Here is how I created the array:
NSMutableArray* theNewItems = [NSMutableArray arrayWithCapacity:20];
[theNewItems addObject:_itemsOnLoad[0]];
[theNewItems addObject:_itemsOnLoad[1]];
[theNewItems addObject:_itemsOnLoad[2]];
And here is how the array logs out
<Items: 0x1706842e0> (entity: Items; id: 0xd000000001900004 <x-coredata://AFF50577-0975-4124-AC70-074F355B73A0/Steps/p100> ; data: {
item = "0xd000000016000000 <x-coredata://AFF50577-0975-4124-AC70-074F355B73A0/Dare/p1408>";
sid = 545;
step = "step three";
wasdeleted = nil;
whenadded = nil;
}),
<Items: 0x170684330> (entity: Items; id: 0xd000000001840004 <x-coredata://AFF50577-0975-4124-AC70-074F355B73A0/Steps/p97> ; data: {
item = "0xd000000016000000 <x-coredata://AFF50577-0975-4124-AC70-074F355B73A0/Dare/p1408>";
sid = 544;
step = "step two";
wasdeleted = nil;
whenadded = nil;
}),
<Items: 0x170684380> (entity: Items; id: 0xd000000001780004 <x-coredata://AFF50577-0975-4124-AC70-074F355B73A0/Steps/p94> ; data: {
item = "0xd000000016000000 <x-coredata://AFF50577-0975-4124-AC70-074F355B73A0/Dare/p1408>";
sid = 543;
step = "step one";
wasdeleted = nil;
whenadded = nil;
})
)}
Should I be creating the mutablearray differently? Or how can I grab the property "step"?
Thanks in advance for any suggestions.