Book Image

Cocoa and Objective-C Cookbook

By : Jeff Hawkins
Book Image

Cocoa and Objective-C Cookbook

By: Jeff Hawkins

Overview of this book

<p>Much of Cocoa is implemented in Objective-C, an object-oriented language that is designed to run at high speed. In order to build powerful Cocoa applications you need more than the basics. This cookbook will provide you with the recipes needed to add Core Animation, gestures, Key Value Coding, and QuickTime to your appilications.<br /><br />The Cocoa and Objective-C Cookbook moves developers beyond the basics of developing with Apple's Cocoa framework. It will help you grasp advanced topics needed to build polished Cocoa applications on Mac OS X.<br /><br />The cookbook provides a comprehensive overview of Cocoa's more popular UI components found in all Mac OS X applications. It has recipes for building custom views, adding support for gestures and working with keyboard and mouse events. There are recipes for using singleton, delegation, and factory design patterns in your own application's architecture. Alongside essential recipes for working with databases and debugging you will also find fun recipes covering animation and multimedia. The Cocoa and Objective-C Cookbook will quickly bring you up to speed with advanced technologies used to build complex applications for Mac OS X.</p>
Table of Contents (18 chapters)
Cocoa and Objective-C Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface

Creating a disk image for your application


In this recipe, we will create a disk image file for distributing your application. Although some developers distribute their applications as a compressed zip file, a disk image is a more professional way to package your application and support files.

Getting ready

Although there is not much needed to create a disk image, you will need a release build of your application and any supporting files such as a readme, and so on.

How to do it...

  1. 1. Start the DiskUtility.app located in the Utilities folder inside the Applications folder.

  2. 2. Choose New Image from the toolbar.

  3. 3. Enter a file name and choose a location for your disk image.

  4. 4. Next, enter a Name for the new image.

  5. 5. Set Size to 100 MB. You can select a larger size if your application requires more than 100 MB

  6. 6. Set Format to Mac OS Extended (Journaled).

  7. 7. Set Encryption to none.

  8. 8. Choose Single partition - Apple Partition Map for the Partitions popup.

  9. 9. Choose read/write disk image for the Image...