About the Authors |
|
xv | |
About the Technical Reviewer |
|
xvii | |
Introduction |
|
xix | |
|
Chapter 1 Becoming a Great iOS or Mac Programmer |
|
|
1 | (10) |
|
Thinking like a Developer |
|
|
1 | (3) |
|
Completing the Development Cycle |
|
|
4 | (1) |
|
Introducing Object-Oriented Programming |
|
|
5 | (3) |
|
Working with the Alice Interface |
|
|
8 | (2) |
|
|
10 | (1) |
|
|
10 | (1) |
|
Chapter 2 Programming Basics |
|
|
11 | (24) |
|
|
11 | (1) |
|
|
12 | (1) |
|
|
13 | (2) |
|
Classes, Objects, and Instances in Alice |
|
|
15 | (1) |
|
|
16 | (1) |
|
|
17 | (1) |
|
|
17 | (1) |
|
|
17 | (1) |
|
Creating an Alice App---To the Moon, Alice |
|
|
17 | (9) |
|
Your First Objective-C Program |
|
|
26 | (1) |
|
Launching and Using Xcode |
|
|
26 | (7) |
|
|
33 | (1) |
|
|
33 | (2) |
|
Chapter 3 It's All About the Data |
|
|
35 | (24) |
|
Numbering Systems Used in Programming |
|
|
35 | (1) |
|
|
35 | (2) |
|
|
37 | (2) |
|
|
39 | (1) |
|
|
40 | (1) |
|
|
40 | (1) |
|
Using Variable and Data Types with Alice |
|
|
41 | (9) |
|
Data Types and Objective-C |
|
|
50 | (5) |
|
|
55 | (2) |
|
|
57 | (1) |
|
|
57 | (2) |
|
Chapter 4 Making Decisions About... And Planning Program Flow |
|
|
59 | (24) |
|
|
59 | (1) |
|
|
60 | (2) |
|
|
62 | (1) |
|
|
63 | (1) |
|
|
63 | (2) |
|
|
65 | (3) |
|
|
68 | (1) |
|
Designing and Flowcharting an Example App |
|
|
69 | (1) |
|
|
70 | (2) |
|
Using Loops to Repeat Program Statements |
|
|
72 | (2) |
|
Coding the Example App in Alice |
|
|
74 | (1) |
|
Coding the Example App in Objective-C |
|
|
75 | (4) |
|
Nested if Statements and else-if Statements |
|
|
79 | (1) |
|
Removing Extra Characters |
|
|
79 | (1) |
|
Improving the Code Through Refactoring |
|
|
80 | (1) |
|
|
80 | (1) |
|
Moving Forward Without Alice |
|
|
81 | (1) |
|
|
81 | (1) |
|
|
82 | (1) |
|
Chapter 5 Object-Oriented Programming with Objective-C |
|
|
83 | (18) |
|
|
83 | (1) |
|
|
84 | (1) |
|
|
85 | (1) |
|
|
85 | (2) |
|
|
87 | (2) |
|
|
89 | (7) |
|
|
96 | (1) |
|
|
97 | (1) |
|
|
97 | (1) |
|
|
97 | (1) |
|
|
97 | (1) |
|
|
98 | (1) |
|
|
98 | (1) |
|
|
98 | (1) |
|
|
98 | (1) |
|
|
98 | (1) |
|
|
99 | (2) |
|
Chapter 6 Learning Objective-C and Xcode |
|
|
101 | (26) |
|
A Brief History of Objective-C |
|
|
101 | (1) |
|
Understanding the Language Symbols and Basic Syntax |
|
|
102 | (1) |
|
|
102 | (1) |
|
Begin and End a Section of Code |
|
|
102 | (1) |
|
Signify the End of a Line of Code |
|
|
103 | (1) |
|
|
103 | (1) |
|
|
104 | (1) |
|
|
104 | (1) |
|
Define an Objective-C Variable |
|
|
105 | (1) |
|
|
105 | (1) |
|
Putting the "Objective" into Objective-C |
|
|
105 | (3) |
|
Writing Another Program in Xcode |
|
|
108 | (1) |
|
|
109 | (16) |
|
|
125 | (1) |
|
|
126 | (1) |
|
Chapter 7 Objective-C Classes, Objects, and Methods |
|
|
127 | (26) |
|
Creating an Objective-C Class |
|
|
127 | (1) |
|
Declaring Interfaces and Properties (Instance Variables) |
|
|
128 | (1) |
|
|
129 | (2) |
|
Working with the Implementation File |
|
|
131 | (1) |
|
|
132 | (1) |
|
|
133 | (1) |
|
|
133 | (2) |
|
|
135 | (4) |
|
Writing the Implementation File |
|
|
139 | (1) |
|
Updating the User Interface |
|
|
140 | (3) |
|
|
143 | (7) |
|
Accessing the Xcode Documentation |
|
|
150 | (1) |
|
|
151 | (1) |
|
|
152 | (1) |
|
Chapter 8 Programming Basics in Objective-C |
|
|
153 | (54) |
|
|
153 | (1) |
|
|
154 | (1) |
|
|
155 | (1) |
|
|
156 | (1) |
|
Using the Mutable Container Classes |
|
|
157 | (1) |
|
|
157 | (1) |
|
|
158 | (1) |
|
|
159 | (1) |
|
Creating the Bookstore Application |
|
|
160 | (6) |
|
Introducing Instance Variables |
|
|
166 | (1) |
|
|
167 | (1) |
|
|
168 | (1) |
|
Finishing the MyBookstore Program |
|
|
169 | (6) |
|
Creating the Initial View |
|
|
175 | (5) |
|
|
180 | (3) |
|
Using the Bookstore Object |
|
|
183 | (1) |
|
|
184 | (1) |
|
|
185 | (14) |
|
|
199 | (3) |
|
Plugging in the Book Details |
|
|
202 | (2) |
|
|
204 | (1) |
|
|
205 | (2) |
|
|
207 | (16) |
|
|
207 | (1) |
|
Using Relational Operators |
|
|
208 | (1) |
|
|
208 | (1) |
|
Creating an Example Xcode App |
|
|
209 | (5) |
|
Using Boolean Expressions |
|
|
214 | (1) |
|
|
215 | (2) |
|
|
217 | (2) |
|
|
219 | (1) |
|
Using the switch Statement |
|
|
220 | (1) |
|
|
221 | (1) |
|
|
221 | (2) |
|
Chapter 10 Creating User Interfaces |
|
|
223 | (20) |
|
Understanding Interface Builder |
|
|
224 | (1) |
|
The Model-View-Controller |
|
|
224 | (2) |
|
Human Interface Guidelines |
|
|
226 | (1) |
|
Creating an Example iPhone App with Interface Builder |
|
|
227 | (5) |
|
|
232 | (1) |
|
|
233 | (1) |
|
|
234 | (1) |
|
|
235 | (2) |
|
|
237 | (2) |
|
Connecting Actions and Objects |
|
|
239 | (1) |
|
|
239 | (1) |
|
|
240 | (1) |
|
|
241 | (2) |
|
Chapter 11 Storing Information |
|
|
243 | (30) |
|
|
243 | (1) |
|
|
243 | (1) |
|
|
244 | (1) |
|
|
245 | (1) |
|
|
245 | (1) |
|
Storing Information in a Database |
|
|
245 | (1) |
|
Getting Started with Core Data |
|
|
246 | (2) |
|
|
248 | (10) |
|
|
258 | (1) |
|
|
258 | (12) |
|
|
270 | (1) |
|
|
271 | (2) |
|
Chapter 12 Protocols and Delegates |
|
|
273 | (4) |
|
|
273 | (1) |
|
|
274 | (1) |
|
|
275 | (1) |
|
|
275 | (1) |
|
|
276 | (1) |
|
|
276 | (1) |
|
Chapter 13 Introducing the Xcode Debugger |
|
|
277 | (14) |
|
Getting Started with Debugging |
|
|
277 | (1) |
|
|
278 | (2) |
|
Using the Breakpoint Navigator |
|
|
280 | (2) |
|
|
282 | (1) |
|
Working with the Debugger Controls |
|
|
283 | (1) |
|
|
284 | (2) |
|
Looking at the Thread Window and Call Stack |
|
|
286 | (1) |
|
|
286 | (2) |
|
Dealing with Code Errors and Warnings |
|
|
288 | (1) |
|
|
288 | (2) |
|
|
290 | (1) |
|
|
290 | (1) |
Index |
|
291 | |