Handling Pointer-to-Pointer Ownership Issues in ARC
问题 Suppose Object A has a property: @property (nonatomic, strong) Foo * bar; Synthesized in the implementation as: @synthesize bar = _bar; Object B manipulates a Foo ** , as in this example call from Object A : Foo * temp = self.bar; [objB doSomething:&temp]; self.bar = temp; Can this, or something similar, be done legitimately? What is the correct declaration for the doSomething: method? Furthermore, suppose Object B may be deallocated before I have a chance to set the bar property (and thus