In the book, you mention that when the object a weak reference points to is dealloc’d, the pointer is set to nil. But apparently, you can’t use “weak” when targeting iOS 4, even with ARC turned on. Am I correct in that?
I was reading that you could use __unsafe _unretained instead, but it does NOT automatically nil out a delloc’d reference. How exactly would you handle that? Do you override dealloc to fix that (but I guess the pointer wouldn’t receive the dealloc message?), or some other method? Or is this just not a particular concern?
Thanks for any advice.