I am struck in this warning for many hours... Am getting
The code is,
-(NSMutableDictionary*)iOSDiction
{
NSMutableDictionary *tmpDic = [[NSMutableDictionary alloc] initWithCapacity:[m_coordDic count]];
for (NSObject *key in [m_coordDic allKeys])
{
[tmpDic setObject:[m_coordDic objectForKey:key] forKey:key]; //Warning
}
return tmpDic;
}
Warning :
"Sending 'NSObject *' to parameter of incompatible type 'id'
Passing argument to parameter aKey
here
NSDictionary.h
- (void)setObject:(id)anObject forKey:(id <NSCopying>)aKey;