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, 08:36 PM   #8 (permalink)
jsd
at this moment
 
Join Date: Mar 2009
Location: San Francisco, CA
Posts: 900
Default

Quote:
Originally Posted by Jonnebob View Post
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.
I know you already have a working answer but I want to mention here that writing

Code:
for (NSString *entry in bookmarkDict)
absolutely does NOT only filter out NSString entries! It simply tells the compiler that you want to treat each item as an NSString. If the item in question actually isn't an NSString, horrible bad things can happen...
jsd is offline   Reply With Quote
 

» Advertisements
» Online Users: 747
15 members and 732 guests
aaronhartigan, Bertrand21, betterlee, chiataytuday, Domele, gascertificate, kampftrinker, Macaret, meribran, nidie, phackdat, superblooddrainer, wilsonn44, wodanbrlam
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,828
Threads: 89,207
Posts: 380,639
Top Poster: BrianSlick (7,129)
Welcome to our newest member, aaronhartigan
Powered by vBadvanced CMPS v3.1.0

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