Inaccuracy for iPhone Documentation?

Discussion in 'Mac Programming' started by Duke Leto, Apr 29, 2008.

  1. Duke Leto macrumors regular

    Joined:
    Mar 17, 2008
    #1
    The example given in the documentation for initializing a NSDictionary:

    NSDictionary *dict = [[NSDictionary alloc] initWithObjectsAndKeys:
    @"value1" @"key1", @"value2", @"key2", nil];

    Notice that there is no comma for the first pair? Is that how it is supposed to be?
     
  2. iphoneGuy macrumors member

    Joined:
    Oct 26, 2007
    Location:
    [[NSLocation alloc] initWithCity: Chicago]
    #2
    Write up a bug against the docs....
     
  3. Duke Leto thread starter macrumors regular

    Joined:
    Mar 17, 2008
    #3
    Ok good. I was checking here to make sure I was correct before I wrote it up.
     

Share This Page