November 2013
Beginner
592 pages
17h 49m
English
One common use of protocols is to exchange data. The editor, or requestor, needs information, and the delegate provides and perhaps updates it. In this section, you design a protocol.
In this case, your car editor needs to know both the car object and number. The add/view scene, or delegate, needs to be informed when the car is changed so you can update the display. That makes three methods for the protocol:
carToEdit returns the car object to edit.
carNumber returns the number (not the index) of the edited car. ...
Read now
Unlock full access