Kindle Version - Location 2435 of 15932


#1

@property (nonatomic, strong) BNRItem *containedItem;
@property (nonatomic, weak) BNRItem *container;

I’m a bit confused because my mind wants to think of the *container pointer variable as the “parent” and *containedItem as the “child”. Would you help me sort that out?

Thanks!


#2

It is kind of confusing.

One way to sort this out is to put 'em into a sentence.

So, I might say: “The item’s container is a backpack.” Or “The backpack’s contained item is a calculator.”