Inaccuracy for iPhone Documentation?

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

  1. Duke Leto macrumors regular

    Mar 17, 2008
    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

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

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

Share This Page