Hello. First of all, this is a fantastic book, but I can’t help but be a little confused at something in chapter 3. In the “Strong and Weak References” section, there are a couple new instance variables and accessors added. Now, setContainedItem: reads:
- (void)setContainedItem:(BNRItem *)i
containedItem = i;
// When given an item to contain, the contained
// item will be given a pointer to its container
Can someone explain to me what the point of the
[i setContainer:self]; is?