Programming Mac OS X with Cocoa for Beginners 2nd Edition
This book aims to provide beginners with an introduction to the programming of Mac OS X Apps using Cocoa, and XCode, the free developer tools provided by Apple, Inc. Examples of Mac apps are: iTunes, Safari, Mail, iCal, Address Book, Microsoft Word, Microsoft Excel, etc. Using Objective-C, Cocoa and XCode as taught in this wikibook will start your education in how to develop Mac apps.
Many of the skills that you learn in this wikibook can be used to build apps for iOS but there are some differences between Mac OS X apps and iOS apps. This book focuses on Mac OS X apps.
Some knowledge of another programming language, preferably Objective-C. The following link is a link to a wikibook that covers Objective C Programming.
Apple has a Mac App Store where it can sell your Mac apps for you and they will pay you 70% of the proceeds. The Mac App Store is available for users of Mac OS X, 10.6 and later by choosing from the Apple menu "App Store...".
In general, this text is written to be followed in order from start to finish except that if you have experience in C, C++, Java or Python, you are encouraged to look at the relevant section of the Appendix to orient you to developing for Mac OS X and Cocoa.
As each topic develops, it builds on the code written previously to add complexity and functionality, so you are advised to read this wikibook from start to finish in the order that it was written.
- 1 Contents
- 2 What Is Cocoa?
- 3 Building a Simple Mac App
- 4 Building Blocks of Mac OS X Apps
- 5 Building More Complex Mac Apps
- 6 More About the Cocoa Framework
- 7 Model-View-Controller (MVC) Design Pattern
- 8 More Cocoa Classes
- 9 Other Application Types
- 10 Managing Source Code
- 11 The Wikidraw App
- 12 Where to Go Next
- 13 Appendix
What Is Cocoa?
Building a Simple Mac App
Building Blocks of Mac OS X Apps
- The Objective C, the Language and Its Advantages
Building More Complex Mac Apps
More About the Cocoa Framework
Model-View-Controller (MVC) Design Pattern
- What MVC Is For
- The Model
- The View
- The Controller
More Cocoa Classes
Other Application Types
Managing Source Code
The Wikidraw App
- A Simple Drawing App
- Implementing Wikidraw
Where to Go Next
- Orientation For C Programmers
- Orientation For C++ Programmers
- Orientation For Java Programmers
- Orientation For Python Programmers