Home Page Icon
Home Page
Table of Contents for
Index
Close
Index
by Andrew Duncan
Objective-C Pocket Reference
Objective-C Pocket Reference
1. Objective-C Pocket Reference
1.1. Introduction
1.1.1. Typographic Conventions
1.1.2. Acknowledgments
1.2. What Is Objective-C?
1.2.1. Dynamic Dispatch
1.2.2. Dynamic Typing
1.2.3. Dynamic Loading
1.2.4. Which Objective-C?
1.2.5. How Do I Get Started?
1.3. Elements of the Language
1.3.1. Objects
1.3.2. Classes
1.3.2.1. Declaring an interface
1.3.2.2. Implementing a class
1.3.3. Inheritance and Subtyping
1.3.4. Fields
1.3.4.1. Access modifiers
1.3.5. Methods
1.3.5.1. Declaring a method
1.3.5.1.1. No parameters
1.3.5.1.2. One parameter
1.3.5.1.3. More than one parameter
1.3.5.1.4. A variable number of parameters
1.3.5.2. Implementing a method
1.3.5.3. Calling a method
1.3.5.4. Naming collisions
1.3.5.5. Private methods
1.3.5.6. Accessors
1.3.5.7. Message search paths
1.3.5.8. Special receivers
1.3.5.9. Selectors
1.3.6. Categories
1.3.6.1. Declaring a category
1.3.6.2. Implementing a category
1.3.7. Protocols
1.3.7.1. Declaring a protocol
1.3.7.2. Adopting a protocol
1.3.7.3. Checking for conformity to a protocol
1.3.7.4. Informal protocols
1.3.8. Declarations
1.3.8.1. Dynamic typing
1.3.8.2. Static typing
1.3.8.3. Type qualifiers
1.3.9. Predefined Types, Constants, and Variables
1.3.9.1. Types
1.3.9.2. Constants
1.3.9.3. Variables
1.4. Compiler and Preprocessor Directives
1.4.1. Class Declarations and Definitions
1.4.2. Forward Declarations
1.4.3. Expanding Directives
1.4.3.1. Using @encode
1.4.3.2. Using @defs
1.4.3.3. Using @"string”
1.4.4. Preprocessor Symbols
1.5. Compiler Flags
1.6. Remote Messaging
1.6.1. Pointer Parameter Qualifiers
1.6.2. Return Value Qualifiers
1.6.3. Object Qualifiers
1.7. Object Lifecycle
1.7.1. Creating an Object
1.7.1.1. Calling creation methods
1.7.1.2. Writing creation methods
1.7.1.3. Sample code for initialization
1.7.1.4. Initializing classes
1.7.2. Copying an Object
1.7.2.1. Calling copy methods
1.7.2.2. Writing copy methods
1.7.3. Deallocating an Object
1.7.3.1. Calling deallocation methods
1.7.3.2. Writing deallocation methods
1.8. Runtime Errors
1.8.1. Object Error Handling
1.8.2. Exceptions in Cocoa
1.8.2.1. Keywords for handling exceptions
1.8.2.2. A Cocoa exception handling example
1.9. Runtime Environment
1.9.1. Class Objects
1.9.2. Metaclass Objects
1.9.3. Selectors
1.9.4. Protocol Objects
1.10. Root Classes
1.10.1. Fields
1.10.2. Methods
1.10.3. The Object Class
1.10.3.1. Creating, copying, and freeing objects
1.10.3.2. Identifying objects and classes
1.10.3.3. Testing object type
1.10.3.4. Testing inheritance and conformance
1.10.3.5. Information about methods
1.10.3.6. Sending messages
1.10.3.7. Posing
1.10.3.8. Enforcing intentions
1.10.3.9. Error handling
1.10.3.10. Archiving
1.10.4. The NSObject Class
1.10.4.1. Creating, copying, and freeing objects
1.10.4.2. Identifying objects and classes
1.10.4.3. Testing inheritance and conformance
1.10.4.4. Information about methods
1.10.4.5. Sending messages
1.10.4.6. Posing
1.10.4.7. Error handling
1.10.4.8. Archiving
1.10.4.9. Reference counting
1.11. Forwarding Messages
1.11.1. Object Forwarding
1.11.2. NSObject Forwarding
1.12. Memory Management
1.12.1. Manual Memory Management
1.12.2. Reference Counting
1.12.2.1. Maintaining an object’s reference count
1.12.2.2. Creating a new object
1.12.2.3. Receiving an object from another scope
1.12.2.4. Returning an already-stored object
1.12.2.5. Replacing an already-stored object
1.12.2.6. Deallocating an object
1.12.2.7. Retain cycles
1.12.3. Garbage Collection
1.13. Archiving Objects
1.13.1. Archiving Descendants of Object
1.13.2. Archiving Descendants of NSObject
1.14. Key-Value Coding
1.14.1. Access Permissions
1.14.2. NSKeyValueCoding Methods
1.14.3. Handling Key Lookup Failures
1.15. Optimizing Method Calls
1.16. Objective-C++
1.17. Objective-C Resources
Index
About the Author
Copyright
Search in book...
Toggle Font Controls
Playlists
Add To
Create new playlist
Name your new playlist
Playlist description (optional)
Cancel
Create playlist
Sign In
Email address
Password
Forgot Password?
Create account
Login
or
Continue with Facebook
Continue with Google
Sign Up
Full Name
Email address
Confirm Email Address
Password
Login
Create account
or
Continue with Facebook
Continue with Google
Prev
Previous Chapter
Index
Next
Next Chapter
Index
O
__OBJC__ preprocessor symbol,
Preprocessor Symbols
objc_error_handler function,
Object Error Handling
objc_open_typed_stream_for_file method,
Archiving Descendants of Object
objc_read_types(),
Archiving Descendants of Object
objc_verror(),
Object Error Handling
objc_write_types(),
Archiving Descendants of Object
Object class,
Object Lifecycle
–
Writing deallocation methods
,
The Object Class
–
Archiving
,
Archiving Descendants of Object
–
Archiving Descendants of Object
archiving descendants of,
Archiving Descendants of Object
–
Archiving Descendants of Object
methods provided by,
The Object Class
–
Archiving
object life cycle, managing,
Object Lifecycle
–
Writing deallocation methods
object qualifiers,
Object Qualifiers
Objective-C,
Dynamic Dispatch
,
Dynamic Typing
,
Dynamic Typing
,
Dynamic Loading
,
How Do I Get Started?
,
Elements of the Language
–
Variables
,
Dynamic typing
,
Static typing
–
Static typing
,
Type qualifiers
,
Compiler and Preprocessor Directives
–
Using @"string”
,
Preprocessor Symbols
,
Compiler Flags
,
Remote Messaging
–
Object Qualifiers
,
Object Lifecycle
–
Writing deallocation methods
,
Runtime Errors
,
Runtime Environment
–
Protocol Objects
,
Class Objects
,
Key-Value Coding
–
Handling Key Lookup Failures
,
Optimizing Method Calls
–
Optimizing Method Calls
,
Objective-C++
,
Objective-C Resources
compiler directives,
Compiler and Preprocessor Directives
–
Using @"string”
compiler flags,
Compiler Flags
dynamic loading in,
Dynamic Loading
dynamic message-sending in,
Dynamic Dispatch
,
Class Objects
dynamic typing in,
Dynamic Typing
,
Dynamic typing
getting started with,
How Do I Get Started?
intermixing C++ with,
Objective-C++
key-value coding,
Key-Value Coding
–
Handling Key Lookup Failures
language elements of,
Elements of the Language
–
Variables
object life cycle,
Object Lifecycle
–
Writing deallocation methods
optimizing method calls,
Optimizing Method Calls
–
Optimizing Method Calls
preprocessor directives,
Preprocessor Symbols
remote messaging,
Type qualifiers
,
Remote Messaging
–
Object Qualifiers
resources for,
Objective-C Resources
runtime environment,
Runtime Environment
–
Protocol Objects
runtime errors,
Runtime Errors
(see runtime errors)
static typing in,
Dynamic Typing
,
Static typing
–
Static typing
objects,
Objects
,
Object Lifecycle
–
Writing deallocation methods
,
Creating an Object
–
Initializing classes
,
Writing creation methods
,
Sample code for initialization
–
Sample code for initialization
,
Copying an Object
–
Writing copy methods
,
Writing copy methods
–
Writing copy methods
,
Deallocating an Object
,
Object Error Handling
–
Object Error Handling
,
Creating, copying, and freeing objects
,
Creating, copying, and freeing objects
,
Creating, copying, and freeing objects
,
Identifying objects and classes
–
Identifying objects and classes
,
Testing object type
,
Testing inheritance and conformance
,
Testing inheritance and conformance
,
Archiving
,
Creating, copying, and freeing objects
,
Creating, copying, and freeing objects
,
Creating, copying, and freeing objects
,
Identifying objects and classes
–
Identifying objects and classes
,
Testing inheritance and conformance
,
Testing inheritance and conformance
,
Archiving
,
Object Forwarding
–
NSObject Forwarding
,
Manual Memory Management
,
Reference Counting
–
Retain cycles
,
Creating a new object
,
Returning an already-stored object
,
Replacing an already-stored object
,
Deallocating an object
,
Archiving Objects
–
Archiving Descendants of NSObject
archiving,
Archiving
,
Archiving
,
Archiving Objects
–
Archiving Descendants of NSObject
methods for,
Archiving
,
Archiving
attributes of,
Objects
conformance, testing,
Testing inheritance and conformance
,
Testing inheritance and conformance
copying,
Copying an Object
–
Writing copy methods
,
Creating, copying, and freeing objects
,
Creating, copying, and freeing objects
creating,
Creating an Object
–
Initializing classes
,
Creating, copying, and freeing objects
,
Creating, copying, and freeing objects
,
Creating a new object
reference counting and,
Creating a new object
deallocating,
Deallocating an Object
,
Creating, copying, and freeing objects
,
Creating, copying, and freeing objects
,
Deallocating an object
reference counting and,
Deallocating an object
error handling,
Object Error Handling
–
Object Error Handling
forwarding,
Object Forwarding
–
NSObject Forwarding
identifying,
Identifying objects and classes
–
Identifying objects and classes
,
Identifying objects and classes
–
Identifying objects and classes
inheritance, testing,
Testing inheritance and conformance
,
Testing inheritance and conformance
initializing,
Writing creation methods
,
Sample code for initialization
–
Sample code for initialization
sample code for,
Sample code for initialization
–
Sample code for initialization
life cycle of,
Object Lifecycle
–
Writing deallocation methods
mutable/immutable,
Writing copy methods
–
Writing copy methods
reference counting,
Reference Counting
–
Retain cycles
releasing memory manually,
Manual Memory Management
replacing,
Replacing an already-stored object
returning,
Returning an already-stored object
testing types of,
Testing object type
oneway type qualifier,
Type qualifiers
,
Return Value Qualifiers
open_typed_stream_for_file(),
Archiving Descendants of Object
optimizing method calls,
Optimizing Method Calls
–
Optimizing Method Calls
OS X platform and gcc compiler,
Which Objective-C?
out type qualifier,
Type qualifiers
,
Pointer Parameter Qualifiers
overloading methods not allowed,
Inheritance and Subtyping
,
Naming collisions
overriding methods,
Inheritance and Subtyping
,
Declaring a category
,
Methods
,
Object Forwarding
avoid using categories,
Declaring a category
implementing forwarding for classes,
Object Forwarding
for root classes,
Methods
Add Highlight
No Comment
..................Content has been hidden....................
You can't read the all page of ebook, please click
here
login for view all page.
Day Mode
Cloud Mode
Night Mode
Reset