Mac Programming for Absolute Beginners [electronic resource] /
Wang, Wallace.author.
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.
Title Page; Copyright Page; Contents at a Glance; Table of Content; About the Author; About the Technical Reviewer; Acknowledgments; Introduction; Code Conventions Used in This Book; What to Expect from This Book; Chapter 1 Understanding  Programming; Programming Principles; Dividing Programs into Parts; Event-Driven Programming; Object-Oriented Programming; Encapsulation; Polymorphism; Inheritance; Understanding Programming Languages; The Building Blocks of Programming Languages; Programming Frameworks; Mac Programming Today; Summary; Chapter 2 Understanding Apple's Programming Tools
Understanding EditorsUnderstanding Xcode; Deciphering the Xcode User Interface; Running Xcode; Creating a New Project in Xcode; Examining Project Files in Xcode; Compiling a Program; Summary; Chapter 3 The Basic Steps to Creating a Mac Program; A Bare-Bones Program Example; A Simple User Interface Example; An Interactive User Interface Example; Writing Objective-C Code; Creating an Action Method; Connecting the User Interface; An Advanced Interactive User Interface Example; Summary; Chapter 4 Getting Help; Installing Help Topics; Getting Help About Xcode; Getting Help About Core Library
Searching for HelpGetting Quick Help; Viewing Documentation for Selected Text; Getting Help with Library Windows; Help While Writing Code; Color-Coding; Customizing the Editor; Using Code Completion; Summary; Chapter 5 Learning Objective-C; Differences in Writing a Mac Objective-C Program; Understanding Objective-C Symbols; Defining the End of Each Line with a Semicolon; Defining the Beginning and End of Code with Curly Brackets; Defining Compiler Directives with the # Symbol; Defining Comments with //; Identifying Objects with [ and ]; Defining Pointers with; Manipulating Data with Variables
Declaring VariablesAssigning Data to a Variable; The Scope of a Variable; A Program Example Using Variables; Using Constants; Using Mathematical Operators; Using Strings; Summary; Chapter 6 Making Decisions with Branches; Understanding Boolean Expressions; Boolean Comparison Operators; Boolean Logical Operators; The ! (Not) Operator; The && (And) Operator; The || (Or) Operator; The ^ ((Xor) Operator; Branches; The Simplest if Statement; Following Multiple Instructions in an if Statement; The if-else Statement; The if-else if Statement; The switch Statement; Summary
Chapter 7 Repeating Code with LoopsLoops That Run a Fixed Number of Times; Quitting a for Loop Prematurely; Skipping in a for Loop; Loops That Run Zero or More Times; The while Loop; The do-while Loop; Quitting a while or do-while Loop Prematurely; Skipping a while or do-while Loop; Nested Loops; Summary; Chapter 8 Understanding the Cocoa Framework; An Overview of How Object-Oriented Programming Works; Starting with a Class; Reducing Bugs; Reusing Code; Defining Classes; Creating an Object; Storing Data in an Object; A Sample Program for Manipulating Objects
Looking Up Method and Property Names for NS Classes
Includes index.
"Get started with Objective-C, Cocoa, and Xcode on the Mac"--Cover.
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.
Mac OS.
Cocoa (Software framework)
Apple computer.
Software engineering.
Apple and iOS.
Software Engineering/Programming and Operating Systems.