Cocoa Objects
To say that Cocoa is object-oriented is to invite the question: What is a Cocoa object? This section describes what is distinctive about Objective-C objects and what advantages the language brings to software development. It also shows you how to use Objective-C to send messages to objects and how to handle return values from those messages. (Objective-C is an elegantly simple language, so this is not too hard to do.) This section also describes the root class, NSObject, and explains how to use its programmatic interface to create objects, introspect them, and manage object life cycles
Contents:
A Simple Cocoa Command-Line Tool
Object-Oriented Programming With Objective-C
The Root Class
The Life Cycle of a Cocoa Object
Object Creation
Introspection
Object Mutability
Class Clusters
Creating a Singleton Instance
© 2006 Apple Computer, Inc. All Rights Reserved. (Last updated: 2006-12-20)
|
| Did this document help you? |
Yes: Tell us what works for you.
|
|