Advertise Books Events Forum News Social Networking Support Us

sdkIQ for iPhone
($4.99)

Shape Up
($0.99)

Your First iPhone App
($1.99)

iVidCam Free
(free)

Kid Art
($0.99)

iPUBQUIZ
(£1.19)

ArtStudio
($3.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 07-02-2009, 11:09 AM   #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
 
Enter the iPhone App Challenge!  Win $500!
» Advertisements
» Online Users: 701
13 members and 688 guests
ali.dar, Ed99, harry123456, headkaze, kristapsz, kuba1234, lokidil, maccoykung, Meoz, pereorra, SteveMobs, Thaurin, warcrow
Most users ever online was 779, 05-11-2009 at 09:55 AM.
» Stats
Members: 24,162
Threads: 38,935
Posts: 170,826
Top Poster: smasher (2,565)
Welcome to our newest member, ddustin
Powered by vBadvanced CMPS v3.1.0

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