Book description
Want to learn how to program on your Mac? Not sure where to begin? Best-selling author Wallace Wang will explain how to get started with Cocoa, Objective-C, and Xcode. Whether you are an experienced Windows coder moving to the Mac, or you are completely new to programming, you’ll see how the basic design of a Mac OS X program works, how Objective-C differs from other languages you may have used, and how to use the Xcode development environment. Most importantly, you’ll learn how to use elements of the Cocoa framework to create windows, store data, and respond to users in your own Mac programs. If you want to learn how to develop apps with Cocoa, Objective-C, and Xcode, this book is a great first step.
Here are just a few of the things you’ll master along the way:
Fundamental programming concepts aided by short, easy-to-understand examples
How to use Xcode and related programming tools to save time and work more efficiently
A firm understanding of the basics of Objective-C and how it compares to other languages you might know
How to create simple apps using the Cocoa framework
How to easily design, write, test, and market your finished program
With this book and your trusty Mac, you’re well on your way to transforming your Mac app ideas into real applications.
What you'll learn
Basic programming concepts illustrated with short, easy-to-understand examples
How to use Xcode and related programming tools
The basics of Objective-C and how it compares to other languages you might know
How to create simple apps using the Cocoa framework
What you'll learn
Mac users who want to learn programming or Windows developers who are moving to the Mac OS and iOS platforms. No previous programming experience required.
Table of contents
- Copyright
- About the Author
- About the Technical Reviewer
- Acknowledgments
- Introduction
- 1. Understanding Programming
- 2. Understanding Apple's Programming Tools
- 3. The Basic Steps to Creating a Mac Program
- 4. Getting Help
- 5. Learning Objective-C
- 6. Making Decisions with Branches
- 7. Repeating Code with Loops
- 8. Understanding the Cocoa Framework
-
9. Manipulating Strings
- 9.1. Declaring a String Variable
- 9.2. Getting the Length of a String
- 9.3. Comparing Two Strings
- 9.4. Checking for Prefixes and Suffixes
- 9.5. Converting to Uppercase and Lowercase
- 9.6. Converting Strings to Numbers
- 9.7. Searching for a Substring
- 9.8. Searching and Replacing
- 9.9. Deleting Part of a String
- 9.10. Extracting a Substring
- 9.11. Appending a Substring
- 9.12. Inserting a String
- 9.13. Summary
- 10. Arrays
-
11. Dictionaries and Sets
- 11.1. Dictionary Basics
- 11.2. Creating and Putting Data in a Dictionary
- 11.3. Counting the Items Stored in a Dictionary
- 11.4. Retrieving an Item from a Dictionary
- 11.5. Deleting Data from a Dictionary
- 11.6. Copying a Dictionary
- 11.7. Copying Dictionary Data Into an Array
- 11.8. Sorting Keys
- 11.9. Access All Items in a Dictionary
- 11.10. Using Sets
- 11.11. Creating and Putting Data in a Set
- 11.12. Counting the Number of Items in a Set
- 11.13. Checking Whether Data Is in a Set
- 11.14. Adding and Removing Data in a Set
- 11.15. Accessing All Items in a Set
- 11.16. Getting the Intersection of Two Sets
- 11.17. Identifying a Subset of a Set
- 11.18. Summary
- 12. Creating Classes and Objects
- 13. Inheritance, Method Overriding, and Events
- 14. Creating a User Interface
- 15. Choosing Commands with Buttons
- 16. Making Choices with Radio Buttons and Check Boxes
- 17. Making Choices with Pop-Up Buttons
- 18. Inputting and Outputting Data with Labels, Text Fields, and Combo Boxes
- 19. Inputting Data with Sliders, Date Pickers, and Steppers
- 20. Using Built-In Dialog Boxes
- 21. Creating Pull-Down Menus
- 22. Designing Your Own Programs
- 23. Working with Xcode
- 24. Debugging Your Program
Product information
- Title: Mac Programming for Absolute Beginners
- Author(s):
- Release date: January 2011
- Publisher(s): Apress
- ISBN: 9781430233367
You might also like
book
Hacking: The Art of Exploitation, 2nd Edition
Hacking is the art of creative problem solving, whether that means finding an unconventional solution to …
book
Ubuntu 20.04 Essentials
Explore the potential of Ubuntu 20.04 to manage your local machine and external servers with ease …
book
40 Algorithms Every Programmer Should Know
Learn algorithms for solving classic computer science problems with this concise guide covering everything from fundamental …
book
TCP/IP Guide
The TCP/IP Guide is both an encyclopedic and comprehensible guide to the TCP/IP protocol suite that …