E-Book, Englisch, 328 Seiten
Maskrey Building iPhone OS Accessories
1. ed
ISBN: 978-1-4302-2932-2
Verlag: Apress
Format: PDF
Kopierschutz: 1 - PDF Watermark
Use the iPhone Accessories API to Control and Monitor Devices
E-Book, Englisch, 328 Seiten
ISBN: 978-1-4302-2932-2
Verlag: Apress
Format: PDF
Kopierschutz: 1 - PDF Watermark
This book provides a serious, in-depth look at Apple's External Accessory framework and the iPhone Accessories API. You'll learn how to create new, integrated solutions that combine iPhone apps with dedicated hardware. The iPhone OS Accessories API expands the opportunities for innovative iPhone developers, allowing you to control and monitor external devices, whether you've built them yourself or obtained them from a third party.
A bio is not available for this author.
Autoren/Hrsg.
Weitere Infos & Material
1;Title Page;1
2;Copyright Page;2
3;Contents at a Glance;4
4;Table of Contents;5
5;About the Author;9
6;About the Technical Reviewer;10
7;Preface;11
8;Part I What is an Accessory?;13
9;Chapter 1 Accessory Overview;14
9.1;Being Different;14
9.2;Accessories;15
9.3;Uses of Accessories;15
9.4;Accessories: A View From Above;17
9.5;Credit Card Reader;22
9.6;But I’m a Programmer;25
9.7;The Software Approach;26
9.8;The Pong Game;27
9.9;Embedded Systems;28
9.10;Building an Accessory;30
9.11;Summary;30
10;Chapter 2 EAAccessory Framework;32
10.1;Frameworks;32
10.2;Streams;33
10.3;Protocols;34
10.4;More on Protocols;37
10.5;The EA Framework;43
10.5.1;EAAccessory Class Properties;43
10.5.2;EAAccessory Class Constants;49
10.5.3;EAAccessoryManager Class;49
10.5.3.1;Shared Accessory Manager;49
10.5.3.2;Accessory Manager Notification;50
10.5.3.3;Available Accessories from Accessory Manager;51
10.5.4;EASession;52
10.5.4.1;Streams;54
10.6;Summary;56
11;Chapter 3 EA Framework Design Patterns;58
11.1;Object-Oriented Programming;58
11.1.1;The Basics of OOP;60
11.1.2;The UIApplication Class;65
11.2;Delegation;68
11.3;OOP and Delegation;72
11.4;Model-View-Controller;75
11.5;Notification;77
11.6;EA Pattern;83
11.7;Summary;84
12;Part II Project Walkthrough;87
13;Chapter 4 The Game Controller;88
13.1;The Griffin iTrip;88
13.1.1;iTrip Dissected;91
13.2;Game Controller Design;93
13.2.1;The Game Controller’s Functions;94
13.2.1.1;The Potentiometer for Paddle Movement;94
13.2.1.2;The Pushbutton to Serve;96
13.3;Electrical and Physical Design;97
13.4;Test Software;99
13.5;Summary;110
14;Chapter 5 Specifying a Pong Game;112
14.1;Keeping It Simple;112
14.2;Specification;112
14.2.1;Page One—Drawings;113
14.2.2;Developing Your Requirements;121
14.3;Summary;125
15;Chapter 6 Coding a Pong Game;127
15.1;Architecture;127
15.1.1;The Application Life Cycle;127
15.1.2;Pong Game Architecture;134
15.1.3;The Application Delegate;136
15.1.4;The View Controller;136
15.1.5;The Nib;138
15.2;Summary;146
16;Chapter 7 Adding the Game Controller;148
16.1;The Game Controller Test Program;148
16.2;The Game Controller Object;152
16.2.1;The Game Controller Interface;152
16.2.2;The Game Controller Implementation;153
16.2.3;View Controller Modifications;163
16.3;Summary;170
17;Chapter 8 Improving the Design;171
17.1;Performance Concerns;171
17.2;Security Concerns;174
17.2.1;The Payment Card Industry;175
17.2.2;Code Changes;180
17.2.2.1;Step 1;181
17.2.2.2;Step 2;181
17.2.2.3;Step 3;181
17.2.2.4;Step 4;181
17.2.2.5;Step 5;182
17.3;Summary;183
18;Chapter 9 Apple Developer Programs;184
18.1;Mac Developer;184
18.2;iPhone Developer;185
18.3;Apple Developer Connection;187
18.4;Made For iPod/Works With iPhone;188
18.5;Running a Business;188
18.6;Summary;195
19;Part III Designing an Accessory;196
20;Chapter 10 Hardware Design;197
20.1;Getting Started;197
20.2;Design Process;200
20.2.1;Parts (Processor) Selection;201
20.2.2;Prototyping;207
20.2.3;Circuit Design;209
20.2.4;PCB Design;214
20.2.5;Fabrication;217
20.2.6;Integration and Testing;219
20.3;Summary;223
21;Chapter 11 Firmware;224
21.1;I’m a PC;224
21.2;Compilers;225
21.3;Programming;226
21.4;Debugging;230
21.5;Your PCB;234
21.6;Structure;237
21.7;Chip Configuration;241
21.8;Summary;242
22;Chapter 12 Everything Else;243
22.1;Tools and Test Equipment;243
22.1.1;Tools;244
22.1.2;Test Equipment;249
22.2;Mechanical Design;251
22.2.1;The Alternative to Custom Mechanical Design;254
22.3;Packaging;255
22.4;Business Processes;257
22.5;Summary;259
23;Appendix;260
23.1;PongViewController.h interface listing;260
23.2;PongViewController.m implementation listing;262
23.3;GameController.h;269
23.4;GameController.m;270
23.5;pongViewController.h;274
23.6;pongViewController.m;276
23.7;pongAppDelegate.h;286
23.8;pongAppDelegate.m;287
23.9;GameController.h;287
23.10;GameController.m;288
23.11;pongViewController.h;292
23.12;pongViewController.m;294
24;Index;305




