Getting my head around the practical applications of strong and weak pointers in Objective-C
Posted
by
Chris Wilson
on Stack Overflow
See other posts from Stack Overflow
or by Chris Wilson
Published on 2012-11-29T10:38:27Z
Indexed on
2012/11/29
11:04 UTC
Read the original article
Hit count: 352
objective-c
|pointers
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?
© Stack Overflow or respective owner