DCRoundSwitch icon indicating copy to clipboard operation
DCRoundSwitch copied to clipboard

Question About Converting to ARC

Open garyfoster opened this issue 12 years ago • 0 comments

I'm not sure how to convert the following line to ARC compatible code, and googled a bit and could not come up with the answer. I changed it to nilSymbol and seems to work but wondering if that is correct.

Original code:

[[self allTargets] makeObjectsPerformSelector:@selector(retain)];

Updated code: [[self allTargets] makeObjectsPerformSelector:@selector(nilSymbol)];

garyfoster avatar Jul 28 '12 13:07 garyfoster