Thread: NSDictionary objectAtIndex
-
08-14-2008, 04:09 AM #1
NSDictionary objectAtIndex
Hi people,
I'm trying to acces an NSDictionary for a table view.
Now my problem is that in apple's example they use
but htis method is deprecated, if you look in the reference of NSDictionary they eliminated this moethod but i don't understand what I must use instead...Code:[aNSDictionary objectAtIndex:intIndex];
I'm little bit confused please help
Thxx
-
08-15-2008, 04:39 PM #2
Where was the example?
objectAtIndex: is an NSArray method, not an NSDictionary method.
An array is indexed by integers, a dictionary is indexed by keys, which can be any Objective-C object (hence)Code:- (id)objectForKey:(id)aKey
Typically you would use NSString as keys, but you can do more sophisticated things.
-
The Following User Says Thank You to NetMage For This Useful Post:
beit (08-18-2008)



LinkBack URL
About LinkBacks
Reply With Quote