Is there something wrong with this code? I m trying to set up some buttons by defining at run time the label, the callback selector, and, later, a pointer to the UIButton itself. But with this code, I get EXC_BAD_ACCESS. It gos away if I delete the line with NSSelectorFromString. But since this is just an object being added to the dictionary, I don t understand shy it fails.
NSMutableDictionary *attachButtonDictionary = [NSMutableDictionary dictionaryWithObjectsAndKeys:
@"Attach To Job",@"keyForLabel",
NSSelectorFromString(@"attachToJob"), @"keyForSelector",
nil];