Getting my head around the practical applications of strong and weak pointers in Objective-C
- by Chris Wilson
I've just read the accepted excellent answer to this question that clarifies the conceptual differences between strong and weak pointers in Objective-C, and I'm still trying to understand the practical differences. I come from a C++ background where these concepts don't exist, and I'm having trouble figuring out where I would use one vs the other.
Could someone please provide a practical example, using Objective-C code, that illustrates the different uses of strong and weak pointers?