NSDictionary

Discussion in 'iOS Programming' started by beit, Aug 14, 2008.

  1. beit macrumors newbie

    Joined:
    May 27, 2008
    #1
    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
     
  2. RossOliver macrumors regular

    Joined:
    Nov 6, 2006
    #2
    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
     
  3. beit thread starter macrumors newbie

    Joined:
    May 27, 2008

Share This Page