![]() Table 2-1 Fundamental design patterns used by Mac apps ![]() Table 2-1 lists the key design patterns with which you should be familiar. Fundamental Design PatternsĬocoa incorporates many design patterns in its implementation. To do so effectively, it's important to understand how a Cocoa app fits together. To make a great app, you should build on the foundations Cocoa lays down for you, working with the conventions and infrastructure provided for you. Most of the behavior is provided by Cocoa itself. And although the Xcode templates provide some code to make this all happen, the amount of code they provide is minimal. Such an app is able to display its window (or create new documents) and implements many standard system behaviors. ![]() In fact, you can create a new Cocoa application project in Xcode and, without adding any code, have a functional app. Cocoa classes are reusable and extensible-you can use them as is or extend them for your particular requirements.Ĭocoa makes it easy to create apps that adopt all of the conventions and expose all of the power of OS X. Cocoa provides an integrated suite of object-oriented software components packaged in two core class libraries, the AppKit and Foundation frameworks, and a number of underlying frameworks providing supporting technologies. Cocoa presents the app’s user interface and integrates it tightly with the other components of the operating system. To unleash the power of OS X, you develop apps using the Cocoa application environment.
0 Comments
Leave a Reply. |