Question about Strong and Weak References


Dear BNR,
In the chapter Strong and Weak References, the first sample made 2 BNRItems used method “backpack.containedItem = calculator;” to make second BNRitem become “child” of first one. But there wasn’t a method make first BNRItem become “child” of Second one. As explanation on book, second one was child of first one in “_container”. How it happened?

Thank you very much for your great book!


I’ve found the implementation of “setContainedItem” in BNRItem.m and I understand now.

Thank you!