Hi,
So I want to get a count of the attributes in a core data entry.
this is it:
Code:
<Tanks: 0x594e580> (entity: Tanks; id: 0x5941850 <x-coredata://A4E6EEC7-2983-456B-BD84-786CCFE5D560/Tanks/p20> ; data: {
name = john;
picture = "john.jpg";
volume = 55G;
})
I've tried everything I can think of but nothing works. The answer should be 3 for name,picture,volume... 'Count' doesn't exist for an Entity and casting it to NSMutableArray or NSArray just gives me SIGBArt errors.
examples that didn't work.
Code:
Tanks *temp = [[tanksArray objectAtIndex:0] count];
NSArray *temp = [[[tanksArray objectAtIndex:0] allKeys] count];
thanks.