-
learn_objective_c_for_java_developers.pdf下载
资源介绍
About the Author ........................................................................................................ xxi
About the Technical Reviewer ................................................................................. xxii
Acknowledgments ................................................................................................... xxiii
Introduction ................................................................................................................xiv
PART 1 ■ ■ ■Language
Chapter 1: Introduction ............................................................................................. 3
Chapter 2: Java and C: Key Differences ................................................................... 11
Chapter 3: Welcome to Objective-C ........................................................................ 27
Chapter 4: Creating an Xcode Project ..................................................................... 55
Chapter 5: Exploring Protocols and Categories ...................................................... 75
Chapter 6: Sending Messages .................................................................................. 87
Chapter 7: Making Friends with nil ....................................................................... 103
PART 2 ■ ■ ■Translating Technologies
Chapter 8: Strings and Primitive Values ................................................................ 117
Chapter 9: Garbage Collection ............................................................................... 135
Chapter 10: Introspection ...................................................................................... 147
Chapter 11:Files ..................................................................................................... 163
Chapter 12: Serialization ........................................................................................ 185
Chapter 13: Communicating Near and Far .......................................................... 211
Chapter 14: Exception Handling ........................................................................... 239
■ CONTENTS AT A GLANCE
v
Chapter 15: Threads ............................................................................................... 257
PART 3 ■ ■ ■Programming Patterns
Chapter 16: Collection Patterns ............................................................................. 287
Chapter 17: Delegation Pattern ............................................................................. 315
Chapter 18: Provider/Subscriber Pattern ............................................................. 325
Chapter 19: Observer Pattern ................................................................................ 339
Chapter 20: Model-View-Controller Pattern ........................................................ 353
Chapter 21: Lazy Initialization Pattern ................................................................. 403
Chapter 22: Factory Pattern ................................................................................... 411
Chapter 23: Singleton Pattern ................................................................................ 429
PART 4 ■ ■ ■Advanced Objective-C
Chapter 24: Memory Management ....................................................................... 435
Chapter 25: Mixing C and Objective-C .................................................................. 457
Chapter 26: Runtime .............................................................................................. 465
Index ......................................................................................................................... 477