views:

23

answers:

1

Hi,

the question explains it all.

For instance, if I have a NSDictionary like this first = ("a", "b", "c"), second = ("d", "e", "f") third = ("g", "h", "i")

And I'd like to loop on them to make some operations. Is it possible?

Thanks

+1  A: 

Finally found it.

for (id theKey in theDictionary) {
    id theObject = [[theDictionary objectForKey:theKey] retain];
}
Tom
Just as an addition to you solution: If you're only interested in the objects, not the keys you can also use `for (id obj in [theDictionary valueEnumerator]) {...}`.
frenetisch applaudierend