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

Duke Leto

macrumors regular
Original poster
Mar 17, 2008
166
0
Ok good. I was checking here to make sure I was correct before I wrote it up.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.