domesticcatsoftware / DCRoundSwitch

A 'modern' replica of UISwitch.
MIT License
765 stars 162 forks source link

Question About Converting to ARC #21

Open garyfoster opened 12 years ago

garyfoster commented 12 years ago

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)];