Enumerating problems
Enumerating problems
- Subject: Enumerating problems
- From: David Dauer <email@hidden>
- Date: Sat, 04 Oct 2003 16:26:25 +0200
Hello,
I have an array with an unlimited number of dictionarys.
(e.g. <key>key</key>
<array>
<dict>
<key>theOneIWant</key>
<string>1</string>
<key>theOneIHate</key>
<string>2</string>
</dict>
<dict>
<key>theOneIWant</key>
<string>3</string>
<key>theOneIHate</key>
<string>4</string>
</dict>
</array>)
I load the array
defaults = [NSUserDefaults standardUserDefaults];
MyArray = [[defaults objectForKey:@"key"] retain];
Now I want to create NSMenuItems with the titles "1" and "3" and so on.
My problem is that I don't know how to enumerate through an array containing
dictionarys and getting everytime a value from the dictionary.
Thanks for any help
--David
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.