A simple example of how to use AVFoundation and Cocoa to record a section of a screen in OSX.