I have the following code:
- (void)setItem:(Todo *)newItem {
item = newItem; }
Why is it that I can't do
- (void)setItem:(Todo *)newItem {
self.item = newItem; }
?
I have item declared in my header file but I get a EXC_BAD_ACCESS
error? Item is also not synthesized. The method is meant to be a custom setter.
Thanks!