> “Typing self.foo releases and nils the variables.”
Yes, if it’s a retain or copy property.
> “Just typing foo = nil is a memory leak.”
Yes, if you had retained the object, but not if it were a weak reference. Admittedly, this is a semi-rare scenario.
> “Just typing foo = nil is a memory leak.” Yes, if you had retained the object, but not if it were a weak reference. Admittedly, this is a semi-rare scenario.