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

Using Instruments for performance


In this recipe, we will look at the Instruments application provided with Xcode. The Instruments application can be used to track memory issues and performance problems within your application.

Getting ready

Instruments can be launched from within Xcode by choosing the Run menu and then choosing Run with Performance Tool.

If you want to run Instruments outside of Xcode, you can find it in the Applications folder within the Developer folder of your Xcode installation.

How to do it...

  1. 1. In Xcode, select the Run menu, then select Run with Performance Tool and choose a performance tool that you want to use. Most likely, you will want to use the Leaks tool to track down memory leaks.

  2. 2. Instruments will launch and start your application and begin sampling information from your application.

  3. 3. When you have collected enough information, click on the Stop button.

  4. 4. Without exiting Instruments, go back to Xcode and make any changes and rebuild your application.

  5. 5. You...