05.01.2013 Views

Mac OS X Leopard - ARCAism

Mac OS X Leopard - ARCAism

Mac OS X Leopard - ARCAism

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

426<br />

CHAPTER 24 MAC <strong>OS</strong> X DEVELOPMENT: THE APPLICATION FRAMEWORKS<br />

Figure 24-4. Image Kit’s image browser in Interface Builder<br />

Here are some of the classes provided by Image Kit:<br />

• Browser for viewing a large number of images in a grid view, similar to iPhoto<br />

• Slideshow for viewing and working with multiple images sequentially<br />

• View optimized for images, with controls for zooming, rotating, and cropping<br />

• Edit panel for changing image properties and applying some basic effects<br />

• Filter application and UI elements for browsing and using filters<br />

• Save panel addition that presents specialized options based on the format of the image data<br />

• Picture taker, like the one found in iChat and Photo Booth<br />

Aside from providing some great functionality, Image Kit is built on the latest <strong>Mac</strong> <strong>OS</strong> X<br />

graphics libraries. That means, aside from having the animated translucent look of a nextgeneration<br />

application, its interfaces are able to optimize performance for modern graphics<br />

cards, using things like hardware acceleration, when available.<br />

Similarly, it uses the same nondestructive Core Image filters found throughout the system,<br />

so as Apple or other developers add new filters, your applications pick them up as well, with no<br />

extra effort on your part.<br />

That also applies to image formats. Already, Image Kit can also handle icons, movies, PDF<br />

documents, and even Quartz Composer compositions.<br />

NOTE For more information on iPhoto and Image Capture, check out Chapter 16.<br />

Accelerate<br />

Imagine yourself in the future, a happy and productive Cocoa programmer. You’ve already finished<br />

this book, including the section on Apple’s optimization tools, so you knew better than to<br />

think about performance while you were blasting out your killer new application.<br />

Now, ahead of schedule and under budget, you’ve carefully profiled away all the major performance<br />

bottlenecks, but one tight loop is giving your trouble. You reach for your book on<br />

assembly language . . .

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!