Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

beit

macrumors newbie
Original poster
May 27, 2008
16
0
Hi people,
I'm trying to acces an NSDictionary for a table view.
Now my problem is that in apple's example they use

Code:
 [aNSDictionary objectAtIndex:intIndex];

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...
I'm little bit confused please help

Thxx
 

RossOliver

macrumors regular
Nov 6, 2006
157
0
Hi people,
I'm trying to acces an NSDictionary for a table view.
Now my problem is that in apple's example they use

Code:
 [aNSDictionary objectAtIndex:intIndex];

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...
I'm little bit confused please help

Thxx

You may want to use an NSArray - NSDictionary is a key->value pair, so each object value is associated with an NSString key:

Code:
[aNSDictionary objectForKey:"firstObject"];

NSArray supports objectAtIndex:

-Ross
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.