how reference copy is handled in Objective-C?
Posted
by Cathy
on Stack Overflow
See other posts from Stack Overflow
or by Cathy
Published on 2010-06-09T10:04:56Z
Indexed on
2010/06/09
11:42 UTC
Read the original article
Hit count: 194
objective-c
|memory-management
Object graph
[Instance A] tree / \ / \ / \ ↓ ↓ [Instance B] [Instance C] apple bug
Question
Instance A has to reference copies to Instance B and Instance C.
If I retain or release Instance A, which has references to the other two instances, what happens to the various reference counts?
© Stack Overflow or respective owner