In this chapter, you will create a subclass of NSView. From time to time, you will create a custom view to do custom drawing or event handling. Even if you do not plan to do custom drawing or event handling, by learning how to create a new view class, you will learn a lot about how Cocoa works. Windows are instances of the class NSWindow. Each window has a collection of views. Each view is responsible for a rectangle of the window.
|Published (Last):||10 April 2016|
|PDF File Size:||2.84 Mb|
|ePub File Size:||11.95 Mb|
|Price:||Free* [*Free Regsitration Required]|
The reason is the Unix core that underlies Mac OS X, and the development tools that run on that core. Cocoa makes it easy to create very slick Mac OS X interfaces for software as well as to create applications in a hurry , and this new Cocoa makes it easy to create very slick Mac OS X interfaces for software as well as to create applications in a hurry , and this new edition of Cocoa Programming for Mac OS X does an excellent job of teaching its readers how to put a Cocoa face on top of code Objective-C code almost exclusively.
Author Aaron Hillegass teaches a Cocoa class, and his book reads like a demonstration-driven lecture in a computer lab. That is, the book takes a heavily example-centric approach to its subject, beginning with simple announcement windows and proceeding to cover the more advanced controls and object-oriented features of Cocoa and Objective-C.
Throughout, he hops back and forth between descriptions of the goal to be accomplished, listings of the code that does the job, and instructions on how to use the Mac OS X development tools to speed the development process.
As well, all the basic controls and design patterns are covered. Book Info The most comprehensive guide to developing Cocoa available.
From the Back Cover The practical guide everyone says you need! For those familiar with Cocoa, the excellent organization and presentation make the book invaluable as a reference tool. To take full advantage of the exciting and innovative features of OS X, Apple recommends a development framework known as Cocoa. Cocoa is a powerful collection of object-oriented tools and libraries that makes developing applications a much faster process.
Mastery of Cocoa is absolutely essential for anyone doing serious development work for the Macintosh. Barzeski, Editor, CocoaDevCentral. Using a tutorial format, it takes you, step-by-step, through five applications and an InterfaceBuilder palette. Each project introduces several new ideas, and as each concept or technique is discussed, the author, drawing on his own extensive experience, shows you the advantages of working with Cocoa in object-oriented software development environments.
All rights reserved. Cocoa is a powerful collection of tools and libraries that will make writing new programs a much faster process. The increased speed does not, however, come for free. This book will guide you through the ideas and techniques that separate the great Cocoa programmers from the wanna-bes. The reader is not expected to have any experience with Mac programming. It is a hands-on book and assumes that the reader has access to Mac OS X and the developer tools.
Cocoa Programming for Mac OS X
Cocoa Programming for Mac OS X, 4th Edition