I just finished this chapter, and i’m still a little fuzzy on how delegation works. This is what i’ve come up with:
Lets say an arm is an instance of a class, hence an object, and so is the brain. The arm, has a delegate property, which it sets to point to the brain. The brain now conforms to a protocol, that lets it know how to handle the delegation on the arm, meaning that it will now know about methods needed to send to the arm to make it do what it wants it to do.
So right now, the arm is basically just an object, and won’t do anything without the brain (it’s delegate) telling it what to do.
I don’t believe this is 100% correct, so if someone could clarify this matter a little more i’d be over joyed. Sorry for using a maybe lame example
Thanks on advance