*let me preface this question with "noob".
Say we have 3 objects: controller , box1, and box2.
"box1" and "box2" are instances created in "controller" and both have a method called "crunch".
Calling "crunch" from "controller" is no problem, but how do I call "box2"s crunch method from "box1"?
Said another way:
If an object instantiates 2 or more new objects, how can those new objects send messages to each other?
Thanks
Say we have 3 objects: controller , box1, and box2.
"box1" and "box2" are instances created in "controller" and both have a method called "crunch".
Calling "crunch" from "controller" is no problem, but how do I call "box2"s crunch method from "box1"?
Said another way:
If an object instantiates 2 or more new objects, how can those new objects send messages to each other?
Thanks