Java开发者转战iOS:Objective-C学习指南

需积分: 10 1 下载量 132 浏览量 更新于2024-07-21 收藏 7.79MB PDF 举报
"《Learn Objective-C for Java Developers》是一本专为Java开发者设计的学习Objective-C的教程,作者是James Bucanek。这本书旨在帮助那些熟悉Java编程语言的读者将他们的专业知识转化为在Mac OS X和iOS应用开发中的高效生产力。书中详细讲解了Objective-C的核心概念、语法特点以及与Java的对比,特别适合Java开发者转型至Apple平台的编程环境。 本书的结构严谨,共分为多个章节,涵盖了从基础的Objective-C编程语言介绍,到类和对象、继承、消息传递等高级主题。对于那些已经具备Java背景的读者来说,这是一本桥梁式的教材,它通过实例演示和深入剖析,帮助他们理解和掌握Objective-C的特点,如ARC(自动引用计数)、Blocks和Category等特性,这些都是与Java语言不同的特性。 版权方面,该书享有2009年James Bucanek的全权保护,未经版权所有者和出版商的书面许可,不得任何形式复制或传输。本书提供了纸质版(ISBN-13: 978-1-4302-2369-6)和电子版(ISBN-13: 978-1-4302-2370-2)供读者选择。编辑团队由Clay Andres、Douglas Pundick领导,Evan DiBiase担任技术审阅者,Steve Anglin和Mark Beckne则加入了编辑董事会,确保了内容的专业性和准确性。 《Learn Objective-C for Java Developers》不仅是一本技术指南,还是一本实用工具,帮助Java开发者迅速适应Apple生态系统的开发需求,无论是为了开发Mac OS X桌面应用还是针对iPhone和iPad的移动应用,都能从中受益匪浅。通过阅读这本书,Java开发者能够提升自己的技能,开拓新的职业发展路径。"
2019-08-16 上传
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