Cover | Table of Contents | Colophon
Foundation.framework) and Application Kit
(AppKit.framework), as shown in Figure 1.2.
/Developer/Documentation/Cocoa.
/Developer/Documentation/Cocoa for complete
details.[receiver message]
self)super (indicating an alternative
search for the method implementation)[receiver message]
self)super (indicating an alternative
search for the method implementation)objc/objc.h:| Type | Definition |
|---|---|
id
|
An object (a pointer to its data structure)
|
Class
|
A class object (a pointer to the class data structure)
|
SEL
|
A selector, a compiler-assigned code that identifies
a method name
|
IMP
|
NSString *mystring;
mystring doesn't have to be an instance of
NSString; it could also be an instance of any class that inherits from
NSString.id:id myObject;
-); a space after the minus sign is optional:- (NSString *)countryName;
void./Developer/Documentation/DeveloperTools.
/Developer/Applications.| Name | Description |
|---|---|
| FileMerge |
Visually compares the contents of two files or two directories.
You can use FileMerge, for example, to determine the differences
between versions of the same source code file or between two project
directories. You can also use it to merge changes.
|
| icns Browser |
Displays the entire contents of Mac OS X icon files.
|
| IconComposer |
Creates Mac OS X icon files from source art.
|
| IORegistryExplorer |
Provides a hierarchical display of the system I/O registry.
|
| JavaBrowser |
Displays the Java class hierarchy and documentation.
|
| MallocDebug |
Measures the dynamic-memory usage of applications, finds memory
leaks, analyzes all allocated memory in an application, and measures
the memory allocated since a given time.
|
| MRJAppBuilder |
Converts executable Java into double-clickable applications for
Mac OS X.
|
| ObjectAlloc |
Tracks and displays all object allocations (both Cocoa
and Core Foundation) for a running application. Allows you to view
the list of objects as well as the call stack that resulted in each
allocation. |
/usr/bin directory.| Name | Description |
|---|---|
cc
|
Compiles C, Objective-C, and C++ source code files.
|
gdb
|
Is a source-level symbolic debugger for C, extended by Apple
to support Objective-C and C++.
|
gnumake
|
Builds the product(s) of a programming project
based on dependency information.
|
as
|
Assembles; translates assembly code into object code.
|
defaults
|
Reads, writes, searches, and deletes user defaults.
The defaults system records user preferences that
persist when the application isn't running. When users
specify defaults in an application's Preferences panel,
NSUserDefaults methods are used to write the defaults.
|
nibtool
|
Reads the contents of an Interface Builder nib file.
Prints classes, the hierarchy, objects, connections, and
localizable strings.
|
/Developer/Applications./Developer/Applications.
alloc) and then initializing it
(init or a variant). For example:NSArray *myArray = [[NSArray alloc] init];
init method is invoked, the method
implementation initializes its instance variables to default values
and completes other startup tasks. Similarly, when an object is
deallocated, its dealloc method is invoked, giving
it the opportunity to release objects it has created, free allocated
memory, and so on.autorelease method, which marks the receiver for
later release, enabling it to live beyond the scope of the owning
object so that other objects can use it.
MainMenu.nib in
the Resources group in Project Builder.