Quote:
Originally Posted by Jonnebob
Thanks for all your replies.
I think part of my problem was that I was coming from java/php background I wasn't used to defining the type of element in the enumerator.
FlyingDiver: changing to id, causes two different warnings.
"invalid reciever type 'id*'"
"passing argument 1 of 'objectForKey:' from incompatible pointer type".
Using NSString in the enumerator doesnt produce any warnings. I think this must be because the the NSDictionary enumerator is looping through the keys which it knows are strings.
|
Read the code above carefully. It's "id", not "id *". "id" is already a pointer, you don't add the "*" to it. Using "id" is the method in the Fast Enumerator documentation.
joe