Programming for the Newton(R) (eBook)
412 Seiten
Elsevier Science (Verlag)
978-1-4832-6907-8 (ISBN)
Julie McKeehan and Neil Rhodes are external faculty at Apple Developer University and regularly teach programming courses. Julie and Neil are principals of Calliope Enterprises, a company providing Macintosh and Newton programming and training services. They are also authors of Wireless for the Newton® and Programming for the Newton Using Macintosh.
Programming for the Newton: Software Development with NewtonScript focuses on the processes, approaches, operations, and principles involved in software development with NewtonScript. The publication first elaborates on Newton application design, views on the Newton, and protos. Discussions focus on system protos, creating and using user protos, linking and naming templates, creating the views of WaiterHelper, Newton application designs, and life cycle of an application. The text then elaborates on the fundamentals of NewtonScript, inheritance in NewtonScript, and view system and messages. Topics include InstallScript and RemoveScript, adding code to WaiterHelper, proto and parent inheritance, combining proto and parent inheritance, frames, arrays, and symbols and path expressions. The book ponders on debugging and Newton data storage, including description of methods and functions, handling soups in application, printing, tracking, and debugging functions. The publication is a vital reference for computer programmers and researchers interested in NewtonScript.
Front Cover
1
Programming for the Newton: Software Development with NewtonScript 4
Copyright Page
5
Table of Contents 8
Apple Computer, Inc. Software License 6
Foreword by Walter Smith 12
Acknowledgements 14
Preface 16
Chapter 1. Newton Application Design 20
Overview 20
A Newton Glossary 21
The Life Cycle of an Application 23
Newton Application Designs 37
Designing an Application—WaiterHelper 40
Summary 41
Chapter 2. Views on the Newton 42
Everything Is a View 43
Views on the Newton and Templates in NTK 44
View Hierarchies 46
View Classes 49
Linking Templates 50
Naming Templates 52
Creating the Views of WaiterHelper 53
Summary 64
Chapter 3. Skeleton of a View 66
What's in a View 67
Common View Slots 68
Why Use Justification? 76
Using Justification 78
Modifying the WaiterHelper Application 89
Summary 104
Chapter 4. Protos 106
Introduction to Protos 107
The System Protos 113
Creating and Using User Protos 117
Protos in WaiterHelper 120
Summary 124
Chapter 5. The Fundamentals of NewtonScript 126
A Brief Overview of NewtonScript 128
Frames 128
Arrays 135
Symbols and Path Expressions 139
Iterating with foreach 141
Types 144
Methods 146
Additional NewtonScript Features 152
The Benefits of NewtonScript 160
Writing Code for WaiterHelper 162
Summary 167
Chapter 6. Inheritance in NewtonScript 168
Overview of NewtonScript Inheritance 169
Proto Inheritance 171
Parent Inheritance 178
Combining Proto and Parent Inheritance 179
NewtonScript, Newton Toolkit, and the Newton 185
Summary 187
Chapter 7. View System and Messages 188
How Views Are Created 189
Other Messages the View System Sends 197
View Messages You Send 197
Declaring Views 199
InstallScript and RemoveScript 202
Adding Code to WaiterHelper 204
Summary 219
Chapter 8. Newton Data Storage 220
Introduction 221
Description of Methods and Functions 228
Samples in the Inspector 249
Handling Soups in Your Application 258
Adding Soups to WaiterHelper 262
Summary 285
Chapter 9.
286
The Inspector 287
Printing 291
Tracing 293
Debugging Functions 295
Exceptions 300
The Debugging Process 305
Summary 307
Appendix A: Important Methods 308
Methods Covered in This Book 308
Methods Not Covered in This Book 311
Appendix B: Important Messages 318
View/Proto Messages 318
Store Methods 329
Soup Methods 331
Cursor Methods 332
Appendix C: Important Global Functions 334
Global Functions Covered in This Book 334
Global Functions Not Covered in This Book 344
Appendix D: Important Global Variables 352
Variables Covered in This Book 352
Variables Not Covered in This Book 353
Appendix E: NewtonScript Syntax 354
About the Grammar 355
Phrasal Grammar 355
Lexical Grammar 360
Operator Precedence 361
Appendix F: Application Issues 362
Setting Application Bounds Based on the Screen Size 362
Creating Unique Application Symbols and Names 363
Appendix G: Using Newton Toolkit 366
Installing NTK 367
NTK Menus 370
Creating a Project 373
Creating a Layout 376
Linking Layouts 378
Creating a User Proto 380
Creating and Modifying Templates 382
The Slot Editor 393
Additional Parts of Your Project 396
Building and Downloading 399
Index 402
Companion Disk Order Form 414
Erscheint lt. Verlag | 10.5.2014 |
---|---|
Sprache | englisch |
Themenwelt | Mathematik / Informatik ► Informatik ► Theorie / Studium |
ISBN-10 | 1-4832-6907-8 / 1483269078 |
ISBN-13 | 978-1-4832-6907-8 / 9781483269078 |
Haben Sie eine Frage zum Produkt? |
Größe: 29,4 MB
Kopierschutz: Adobe-DRM
Adobe-DRM ist ein Kopierschutz, der das eBook vor Mißbrauch schützen soll. Dabei wird das eBook bereits beim Download auf Ihre persönliche Adobe-ID autorisiert. Lesen können Sie das eBook dann nur auf den Geräten, welche ebenfalls auf Ihre Adobe-ID registriert sind.
Details zum Adobe-DRM
Dateiformat: PDF (Portable Document Format)
Mit einem festen Seitenlayout eignet sich die PDF besonders für Fachbücher mit Spalten, Tabellen und Abbildungen. Eine PDF kann auf fast allen Geräten angezeigt werden, ist aber für kleine Displays (Smartphone, eReader) nur eingeschränkt geeignet.
Systemvoraussetzungen:
PC/Mac: Mit einem PC oder Mac können Sie dieses eBook lesen. Sie benötigen eine
eReader: Dieses eBook kann mit (fast) allen eBook-Readern gelesen werden. Mit dem amazon-Kindle ist es aber nicht kompatibel.
Smartphone/Tablet: Egal ob Apple oder Android, dieses eBook können Sie lesen. Sie benötigen eine
Geräteliste und zusätzliche Hinweise
Buying eBooks from abroad
For tax law reasons we can sell eBooks just within Germany and Switzerland. Regrettably we cannot fulfill eBook-orders from other countries.
aus dem Bereich