Recipe 14-7 introduces VIDEOkit, a basic external screen client. It demonstrates all the features needed to get up and going with wired and wireless external screens. You establish screen monitoring by calling
startupWithDelegate:. Pass it the primary view controller whose job it will be to create external content.
init method starts listening for screen attach and detach events and builds and tears down windows as needed. An informal delegate method (
updateExternalView:) is called each time the display link fires. It passes a view that lives on the external window that the delegate can draw onto as needed.
In the sample code that accompanies this recipe, the view controller delegate stores a local color value and uses it ...