- Author: Aaron Hillegass and Mikey Ward
- Language: English
- Published: 2013
- Page:371
- Format: pdf
- Size: 14 MB
CONTENTS
I. Getting Started 1
1. You and This Book ............................................................................................... 3
2. Your First Program ................................................................................................ 7
II. How Programming Works 19
3. Variables and Types ............................................................................................. 21
4. if/else ................................................................................................................ 25
5. Functions ........................................................................................................... 29
6. Format Strings .................................................................................................... 43
7. Numbers ............................................................................................................ 47
8. Loops ................................................................................................................ 55
9. Addresses and Pointers ......................................................................................... 65
10. Pass-By-Reference ............................................................................................. 71
11. Structs ............................................................................................................. 75
12. The Heap ......................................................................................................... 79
III. Objective-C and Foundation 83
13. Objects ............................................................................................................ 85
14. More Messages ................................................................................................. 95
15. Objects and Memory ........................................................................................ 103
16. NSString ........................................................................................................ 109
17. NSArray ......................................................................................................... 119
18. Your First Class ............................................................................................... 129
19. Properties ....................................................................................................... 137
20. Inheritance ...................................................................................................... 141
21. Object Instance Variables and Properties .............................................................. 151
22. Class Extensions .............................................................................................. 161
23. Preventing Memory Leaks ................................................................................. 165
24. Collection Classes ............................................................................................ 177
25. Constants ........................................................................................................ 189
26. Writing Files with NSString and NSData .............................................................. 197
27. Callbacks ........................................................................................................ 205
28. Blocks ............................................................................................................ 217
29. Protocols ........................................................................................................ 229
30. Property Lists .................................................................................................. 233
IV. Event-Driven Applications 237
31. Your First iOS Application ................................................................................ 239
32. Your First Cocoa Application ............................................................................. 259
V. Advanced Objective-C 279
33. init ................................................................................................................ 281
34. More about Properties ....................................................................................... 291
35. Key-Value coding ............................................................................................. 297
36. Key-Value Observing ........................................................................................ 301
37. Categories ....................................................................................................... 305
VI. Advanced C 307
38. Bitwise Operations ........................................................................................... 309
39. C Strings ........................................................................................................ 317
40. C Arrays ........................................................................................................ 323
41. Running from the Command Line ....................................................................... 329
42. Switch Statements ............................................................................................ 335
Appendix: The Objective-C Runtime 337
Introspection ......................................................................................................... 337
Dynamic method lookup and execution ..................................................................... 337
Management of classes and inheritance hierarchies ...................................................... 338
How KVO works .................................................................................................. 342
Final notes ........................................................................................................... 344
Challenge: instance variables ................................................................................... 344
Next Steps
DOWNLOAD HERE
No comments:
Post a Comment