I have an NSMutableArray that looks like this
{
"@active" = false;
"@name" = NAME1;
},
{
"@active" = false;
"@name" = NAME2;
}
Is there a way to convert this to an NSDictionary and then use objectForKey to get an array of the name objects? How else can I get these objects?
There is a even shorter form then this proposed by Hubert
valueForKey:on NSArray returns a new array by sendingvalueForKey:givenKeyto all it elements.From the docs:
Example:
result: