If my reading of Mike Ash's "Zeroing Weak References" writeup is correct, weak references are like assign
references without ARC. However, if the referenced object is deallocated, instead of getting a "dangling pointer" (meaning a pointer that points to a deallocated object), the pointer gets set to nil
.
Is this right, and does this happen with any property marked weak
or assign
(when ARC is active)?
If this is correct, this would eliminate a lot of SIGABRTs.
See Question&Answers more detail:os