O'Reilly logo

Mac Application Development by Example Beginner's Guide by Robert Wiebe

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action – capturing a frame

When a capture session is running, we can add another output object that will be notified each time a new, uncompressed, frame is captured. The output's delegate object can do whatever it wants to do to that captured frame, for example, save it to a file.

  1. Select the iSight Recorder TARGET in the standard editor. In the Build Phases section titled Link Binary With Libraries, add the QuartzCore.framework.
  2. Remember to drag the QuartzCore.framework to the Frameworks folder in the project navigator.
  3. In the file named BTSAppDelegate.h, add a #define for our captured image's width, height, and JPG file extension.
    // Define the image size for pictures #define D_BTS_SNAP_WIDTH 640 #define D_BTS_SNAP_HEIGHT 480 // Define ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required