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

Duke Leto

macrumors regular
Original poster
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?
 
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?

Write up a bug against the docs....
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.