Book description
Learn Objective-C for Java Developers will guide experienced Java developers into the world of Objective-C. It will show them how to take their existing language knowledge and design patterns and transfer that experience to Objective-C and the Cocoa runtime library. This is the express train to productivity for every Java developer who dreamt of developing for Mac OS X or iPhone, but felt that Objective-C was too intimidating. So hop on and enjoy the ride!
Provides a translation service that turns Java problem-solving skills into Objective-C solutions
Allows Java developers to leverage their existing experience and quickly launch themselves into a new domain
Takes the risk out of learning Objective-C
What you'll learn
Apply Java experience to Objective-C and Cocoa
Use elegant alternatives that increase productivity
Maximize the powerfully unique constructs of Objective-C, like class clusters
Think like an object-oriented C programmer to create more reusable code
Use all of the things in Java and Objective-C that are actually quite similar, like MVC design patterns
Learn how to do all of it within Apple's powerful Xcode programming environment using Cocoa frameworks
Who is this book for?
Experienced Java developers interested in developing native applications for Apple's Mac OS X operating system, iPhone, and iPod touch.
Table of contents
- Copyright
- About the Author
- About the Technical Reviewer
- Acknowledgements
- Introduction
-
1. Language
- 1. Introduction
- 2. Java and C: Key Differences
-
3. Welcome to Objective-C
- 3.1. Defining an Objective-C Class
- 3.2. Object Pointers
- 3.3. Sending Messages
- 3.4. Naming Methods
- 3.5. Parameter and Return Types
- 3.6. Method Selectors
- 3.7. Instance Variables
- 3.8. Overriding Properties
- 3.9. Accessing Properties
- 3.10. Scope
- 3.11. Forward @class Directive
- 3.12. self and super
- 3.13. Class Methods
- 3.14. Constructing Objects
- 3.15. Destructors
- 3.16. What's Missing?
- 4. Creating an Xcode Project
- 5. Exploring Protocols and Categories
- 6. Sending Messages
- 7. Making Friends with nil
-
2. Translating Technologies
- 8. Strings and Primitive Values
- 9. Garbage Collection
- 10. Introspection
-
11. Files
- 11.1. File System APIs
- 11.2. Identifying Items in the File System
- 11.3. Requesting a File from the User
- 11.4. Symbolic Links, Hard Links, and Aliases
- 11.5. Working With the Contents of a Directory
- 11.6. File Properties
- 11.7. High-Level File Operations
- 11.8. NSWorkspace
- 11.9. Random File Access
- 11.10. NSFileManager Delegate
- 11.11. Alternate APIs
- 11.12. Summary
-
12. Serialization
-
12.1. Archiving
- 12.1.1. Archive Types
- 12.1.2. Archive Coders
- 12.1.3. Archives and Documents
- 12.1.4. Adding Keyed Archive Support to Your Class
- 12.1.5. Adding Sequential Archive Support to Your Class
- 12.1.6. Supporting Both Keyed and Sequential Archiving
- 12.1.7. Archiving Complications
- 12.2. Objective-C Serialization
- 12.3. Copying Objects
- 12.4. Summary
-
12.1. Archiving
-
13. Communicating Near and Far
- 13.1. Communicating Within a Single Process
- 13.2. Communicating with Other Processes
- 13.3. Networking
- 13.4. Summary
- 14. Exception Handling
- 15. Threads
-
3. Programming Patterns
-
16. Collection Patterns
- 16.1. Immutable Collections
- 16.2. Ordered Collections
- 16.3. Dictionary Collections
- 16.4. Set Collections
- 16.5. Composite Pattern
- 16.6. Collection Equality Contracts
- 16.7. Comparing Collections
- 16.8. Iterator Pattern
- 16.9. Sorting Collections
- 16.10. Filtering Collections
- 16.11. Collection Concurrency
- 16.12. Summary
- 17. Delegation Pattern
- 18. Provider/Subscriber Pattern
- 19. Observer Pattern
-
20. Model-View-Controller Pattern
- 20.1. Understanding Model-View-Controller
- 20.2. Bindings
- 20.3. Interface Builder
- 20.4. Views
- 20.5. Document Model
- 20.6. Events and Responders
- 20.7. Data Models
- 20.8. Controllers
- 20.9. About TicTacToe
- 20.10. Summary
- 21. Lazy Initialization Pattern
- 22. Factory Pattern
- 23. Singleton Pattern
-
16. Collection Patterns
-
4. Advanced Objective-C
- 24. Memory Management
- 25. Mixing C and Objective-C
- 26. Runtime
Product information
- Title: Learn Objective-C for Java Developers
- Author(s):
- Release date: September 2009
- Publisher(s): Apress
- ISBN: 9781430223696
You might also like
book
Learning Objective-C 2.0: A Hands-on Guide to Objective-C for Mac and iOS Developers, Second Edition
Get Started Fast with Objective-C 2.0 Programming for OS X Mountain Lion, iOS 5.1, and Beyond …
book
Hands-On Full-Stack Development with Swift
Build full-stack shopping list applications from scratch for web and mobile platforms using Xcode, Vapor, and …
book
Java EE 8 Development with Eclipse
Develop and deploy fully functional applications and microservices utilising Tomcat, Glassfish servers, Cloud and docker in …
book
Client-Server Web Apps with JavaScript and Java
As a Java programmer, how can you tackle the disruptive client-server approach to web development? With …