I updated former Apple sample code PDF Voyeur to build with 10.12. github.com/douglashill/PDF-Voyeur