I have a plist with categories :
<array>
<dict>
<key>part</key>
<string>up</string>
<key>house</key>
<array>
<dict>
<key>name</key>
<string>name1</string>
<key>theme</key>
<string>theme1</string>
<key>image</key>
<string>image1.png</string>
</dict>
</array>
</dict>
<dict>
<key>part</key>
<string>down</string>
<key>house</key>
<array>
<dict>
<key>name</key>
<string>name2</string>
<key>theme</key>
<string>theme4</string>
<key>image</key>
<string>image2.png</string>
</dict>
<dict>
<key>name</key>
<string>name3</string>
<key>theme</key>
<string>theme2</string>
<key>image</key>
<string>image3.png</string>
</dict>
</array>
</dict>
But I would like also have an array with only the list of all the names.
I tried NSArray* allSecretsWithDuplicates = [data valueForKeyPath:@"part.name"];
The problem is it return an array of dictionaries.