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, 11:44 AM   #4 (permalink)
FlyingDiver
Former NeXTStep Developer
 
Join Date: Mar 2009
Posts: 997
Default

Change your code to this to get rid of the warning:

Code:
for (id entry in bookmarkDict)
		
	{
		if ([entry hasPrefix:@"Stanford"]) 
		{
			NSLog(@"Key: '%@' URL: '%@'", entry, [bookmarkDict objectForKey:entry]);
		}
		
	}
The problem you have is that the enumerator for iterating through the dictionary is not a (NSDictionary *). It's a generic pointer (id) because you don't actually know what the dictionary entry type is.

joe
FlyingDiver is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 158,804
Threads: 89,205
Posts: 380,611
Top Poster: BrianSlick (7,129)
Welcome to our newest member, Xiomaradcii
Powered by vBadvanced CMPS v3.1.0

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