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 and saving images

Once more, we will use a category to organize our program code. This time our category will be used for capturing and saving still images.

  1. In Xcode, click on the file named MainmMenu.xib in the project navigator and add a button with the name Take Picture.
  2. We are going to use another category to extend the behavior of our BTSWindowController object. From the File menu, select New, and then select the File… option.
  3. Select the Mac OS X Cocoa Objective-C category template and click on the Next button.
  4. For the Category, select Importer and for the Category on select BTSWindowController, then click on the Next button.
  5. Click the Create button.
  6. In the file named BTSWindowController+Importer.h, add the following ...

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