One Quickie


Populating a dictionary with predefined values (NSDictionary->General)
dictionaryWithObjectsAndKeys is handy if you're setting up a defaults preference dictionary (or text attributes, or any dictionary) by hand:
    defaults = [NSDictionary dictionaryWithObjectsAndKeys:
                             [NSNumber numberWithFloat: 25.0], @"density",
                             [NSNumber numberWithFloat: 40.0], @"rate",
                             nil];



borkware home | products | miniblog | rants | quickies | cocoaheads
Advanced Mac OS X Programming book

webmonster@borkware.com