Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 07-02-2009, 12:09 PM   #6 (permalink)
FlyingDiver
Former NeXTStep Developer
 
Join Date: Mar 2009
Posts: 997
Default

Quote:
Originally Posted by Jonnebob View Post
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
FlyingDiver is offline   Reply With Quote
 

» Advertisements
» Online Users: 795
15 members and 780 guests
ADY, at0m87, charles.scholten, Domele, hiddendemo, Hirley2324, J.Steve, Jaxen66, KarlJay, smarkmee, srilu, suresk, thitikorn, ugur
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,630
Threads: 89,146
Posts: 380,340
Top Poster: BrianSlick (7,110)
Welcome to our newest member, thitikorn
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:23 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.