Effective Objective-C 2.0
Introduction
1.
Accustoming Yourself to Objective-C
1.1.
Familiarize Yourself with Objective-C’s Roots
2.
Objects, Messaging, and the Runtime
2.1.
Understand Properties
2.2.
Access Instance Variables Primarily Directly When Accessing Them Internally
2.3.
Understand Object Equality
2.4.
Use Associated Objects to Attach Custom Data to Existing Classes
2.5.
Understand the Role of objc_msgSend
2.6.
Understand Message Forwarding
2.7.
Consider Method Swizzling to Debug Opaque Methods
2.8.
Understand What a Class Object Is
3.
Protocols and Categories
3.1.
Use Categories to Break Class Implementations into Manageable Segments
3.2.
Use a Protocol to Provide Anonymous Objects
3.3.
Avoid Properties in Categories
3.4.
Use the Class-Continuation Category to Hide Implementation Detail
4.
Memory Management
4.1.
Understand Reference Counting
4.2.
Use ARC to Make Reference Counting Easier
4.3.
Release References and Clean Up Observation State Only in dealloc
4.4.
Use Zombies to Help Debug Memory-Management Problems
4.5.
Avoid Using retainCount
5.
Blocks and Grand Central Dispatch
6.
The System Frameworks
6.1.
Familiarize Yourself with the System Frameworks
6.2.
Prefer Block Enumeration to for Loops
6.3.
Use Toll-Free Bridging for Collections with Custom Memory-ManagementSemantics
6.4.
Use NSCache Instead of NSDictionary for Caches
6.5.
Keep initialize and load Implementations Lean
6.6.
Remember that NSTimer Retains Its Target
Powered by
GitBook
A
A
Serif
Sans
White
Sepia
Night
Share on Twitter
Share on Google
Share on Facebook
Share on Weibo
Share on Instapaper
Effective Objective-C 2.0
Use ARC to Make Reference Counting Easier