Newton OS 2.1 Engineering Documents — Preliminary Draft
From the originals
13 scansMachine-transcribed text and image descriptions. Check the linked original for uncertain words or fine print.
These are transcribed pages from the documents, not the full publications. Open the original for the remaining pages.
Image 1
Newton OS 2.1 Engineering Documents
Newton OS 2.1 Engineering Documents IMPORTANT The information in this document is preliminary, unreviewed, and it is subject to change. October 6, 1996 Newton Technical Publications Team © Apple Computer, Inc. 1996
A cover page with two black Apple logos, a horizontal rule, a large serif title block at left-center, and a bold sans-serif IMPORTANT notice with small copyright and date lines near the bottom.
- Printed product names
- Newton OS 2.1
- Printed dates
- October 6, 1996 · 1996
- Languages
- English
PDF page 1
ð ð Newton OS 2.1 Engineering Documents IMPORTANT The information in this document is preliminary, unreviewed, and it is subject to change. October 6, 1996 Newton Technical Publications Team © Apple Computer, Inc. 1996
Reading notes: The two leading symbol characters (rendered as 'ð') are unidentified and were not transcribed. The reading order and line grouping are inferred from the supplied text and may not match the printed layout. The headline is inferred from the title line 'Newton OS 2.1' and may be a product title rather than an advertising headline. The '©' copyright line and the 'Newton Technical Publications Team' credit are shown in the source text but not verified visually. The transcript is intentionally empty per the instruction to rely on the separately preserved extracted text.
- Printed product names
- Newton OS 2.1
- Printed dates
- October 6, 1996 · 1996
- Languages
- English
PDF page 2
Apple Computer, Inc. © 1996 Apple Computer, Inc. All rights reserved. No part of this publication or the software described in it may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, mechanical, electronic, photocopying, recording, or otherwise, without prior written permission of Apple Computer, Inc., except in the normal use of the software or to make a backup copy of the software. The same proprietary and copyright notices must be affixed to any permitted copies as were affixed to the original. This exception does not allow copies to be made for others, whether or not sold, but all of the material purchased (with all backup copies) may be sold, given, or loaned to another person. Under the law, copying includes translating into another language or format. You may use the software on any computer owned by you, but extra copies cannot be made for this purpose. Printed in the United States of America. The Apple logo is a registered trademark of Apple Computer, Inc. Use of the “keyboard” Apple logo (Option-Shift-K) for commercial purposes without the prior written consent of Apple may constitute trademark infringement and unfair competition in violation of federal and state laws. No licenses, express or implied, are granted with respect to any of the technology described in this book. Apple retains all intellectual property rights associated with the technology described in this book. This book is intended to assist application developers to develop applications only for licensed Newton platforms. Apple Computer, Inc. 1 Infinite Loop Cupertino, CA 95014 408-996-1010 Apple, the Apple logo, AppleTalk, eMate, Espy, LaserWriter, the light bulb logo, Macintosh, MessagePad, Newton, Newton Connection Kit, and New York are trademarks of Apple Computer, Inc., registered in the United States and other countries. Geneva, NewtonScript, Newton Toolkit, and QuickDraw are trademarks of Apple Computer, Inc. Acrobat, Adobe Illustrator, and PostScript are trademarks of Adobe Systems Incorporated, which may be registered in certain jurisdictions. CompuServe is a registered service mark of CompuServe, Inc. FrameMaker is a registered trademark of Frame Technology Corporation. Helvetica and Palatino are registered trademarks of Linotype Company. ITC Zapf Dingbats is a registered trademark of International Typeface Corporation. Microsoft is a registered trademark of Microsoft Corporation. Windows is a trademark of Microsoft Corporation. QuickView™ is licensed from Altura Software, Inc. Simultaneously published in the United States and Canada. LIMITED WARRANTY ON MEDIA AND REPLACEMENT If you discover physical defects in the manual or in the media on which a software product is distributed, APDA will replace the media or manual at no charge to you provided you return the item to be replaced with proof of purchase to APDA. ALL IMPLIED WARRANTIES ON THIS MANUAL, INCLUDING IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, ARE LIMITED IN DURATION TO NINETY (90) DAYS FROM THE DATE OF THE ORIGINAL RETAIL PURCHASE OF THIS PRODUCT. Even though Apple has reviewed this manual, APPLE MAKES NO WARRANTY OR REPRESENTATION, EITHER EXPRESS OR IMPLIED, WITH RESPECT TO THIS MANUAL, ITS QUALITY, ACCURACY, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE. AS A RESULT, THIS MANUAL IS SOLD “AS IS,” AND YOU, THE PURCHASER, ARE ASSUMING THE ENTIRE RISK AS TO ITS QUALITY AND ACCURACY. IN NO EVENT WILL APPLE BE LIABLE FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES RESULTING FROM ANY DEFECT OR INACCURACY IN THIS MANUAL, even if advised of the possibility of such damages. THE WARRANTY AND REMEDIES SET FORTH ABOVE ARE EXCLUSIVE AND IN LIEU OF ALL OTHERS, ORAL OR WRITTEN, EXPRESS OR IMPLIED. No Apple dealer, agent, or employee is authorized to make any modification, extension, or addition to this warranty. Some states do not allow the exclusion or limitation of implied warranties or liability for incidental or consequential damages, so the above limitation or exclusion may not apply to you. This warranty gives you specific legal rights, and you may also have other rights which vary from state to state.
Reading notes: Transcript is intentionally empty because the exact extracted text is preserved separately; the other fields were filled only from the supplied copy, not from the image. No headline is present; the uppercase section headings such as LIMITED WARRANTY ON MEDIA AND REPLACEMENT are not treated as an advertising headline. The product names are trademark mentions in a legal notice, not advertised products, so they may not fit the advertised-product criterion. The phone number 408-996-1010 and the address are contact text, not prices or dates; '(90) DAYS' is a warranty term, not a printed date. The source uses curly quotation marks and the symbols © and ™, which are preserved only in the separate extracted text.
- Printed product names
- Macintosh · MessagePad · eMate · Newton · Newton Connection Kit · LaserWriter · Espy · AppleTalk · Geneva · NewtonScript · Newton Toolkit · QuickDraw · Acrobat · Adobe Illustrator · PostScript · CompuServe · FrameMaker · Helvetica · Palatino · ITC Zapf Dingbats · Microsoft · Windows
- Printed dates
- 1996
- Languages
- English
PDF page 3
iii Contents Preface About This Book xiii Related Books xiii Sample Code xiv Conventions Used in This Book xv Special Fonts xv Developer Products and Support xv Chapter 1 NewtonWorks API ERS 1-1 NewtonWorks-Specific slots 1-2 UpdateStatusBar 1-2 DataDef 1-2 FindFn 1-3 FindSoupExcerpt 1-3 Info Preferences 1-3 Infobox (Title slip) info 1-4 InfoBoxExtract 1-4 Viewdefs 1-5 Find 1-5 FindChange 1-6 ShowFoundItem 1-6 Storage 1-7 SaveData 1-7 Scrolling 1-7 ViewScrollUpScript 1-8 ViewScrollDownScript 1-8 Scroll 1-8 GetScrollValues 1-8 GetTotalHeight 1-8 GetTotalWidth 1-9 GetScrollableRect 1-9 UpdateAllScrollers 1-9 Status Bar 1-9 UpdateStatusBar 1-10 Help 1-10 DoHelp 1-11 Other 1-11 PrefsChanged 1-11 ViewChangedScript 1-11 Registering Tools 1-12
Reading notes: Source is a table of contents, not advertising copy; no advertised products or prices present.
- Languages
- English
PDF page 4
Chapter 2 NewtonWorks Draw Application ERS
iv RegNewtWorksTool 1-12 UnregNewtWorksTool 1-13 GetNewtWorksTools 1-13 NewtonWorks Word Processor Soup Format 1-14 Chapter 2 NewtonWorks Draw Application ERS 2-1 Overview 2-1 Feature List 2-2 Creating Graphical Objects 2-2 Modifying Graphical Objects 2-3 Arranging Graphical Objects 2-4 Setting Text Attributes 2-4 Setting Paragraph Rulers 2-4 ClipArt Stamps (bitmaps) 2-5 Additional Features 2-5 Gestures 2-5 Selection 2-5 Specifying Vertices of Polygons 2-6 Locking Tools Palette 2-6 User Interface 2-6 Tool Bar 2-7 Arrow Tool 2-7 Text Tool 2-7 Line Tool 2-8 Rectangle Tool 2-8 Rounded Rectangle Tool 2-8 Oval Tool 2-8 Arc Tool 2-8 Freehand Tool 2-8 Polygon Tool 2-8 Stamp Tool 2-9 Shapes Tool 2-9 Fill Pattern Palette 2-9 Pen Pattern Palette 2-10 Pen Size Palette 2-11 New Button 2-12 Edit Button 2-12 Undo 2-13 Cut, Copy, Paste, Clear, Duplicate 2-13 Select All 2-13 Arrange Button 2-14 Move Forward, Move Backward 2-14 Move to Front, Move to Back 2-14 Align Objects 2-15 Rotate Right/Left 2-15
Reading notes: Source is a table of contents; heading treated as primary title
- Printed product names
- NewtonWorks · NewtonWorks Word Processor Soup Format · NewtonWorks Draw Application
- Languages
- English
PDF page 5
v Flip Horizontally, Flip Vertically 2-16 Group, Ungroup 2-16 Font Button 2-16 Tools Button 2-16 Hide Grid/Show Grid 2-16 Hide Tools/Show Tools 2-16 Show Rulers/Hide Rulers 2-16 Info Button 2-16 About 2-17 Help 2-17 Prefs 2-17 Developer API 2-17 Adding and Removing Custom Drawing Tools 2-17 Drawing Tool Template 2-18 Developer-Defined Drawing Tool Methods 2-20 Drawing Methods 2-23 GetContents 2-23 SetContents 2-23 GetCanvas 2-23 AddShape 2-24 AddShapeToSelection 2-24 ClearSelection 2-24 SelectAll 2-24 GetSelectedShapes 2-24 DirtyShape 2-25 EditGroup 2-25 EditUnGroup 2-25 EditCopy 2-25 EditCut 2-25 EditPaste 2-25 EditDelete 2-25 EditDuplicate 2-25 EditUndo 2-26 Draw Patterns 2-26 Draw Stamps 2-26 Chapter 3 Word Processing View ERS 3-1 About protoTXView And the View System 3-1 Application-defined Methods 3-2 View Slots 3-3 Other View Features 3-3 Terminology 3-4 Common Parameter Descriptions 3-4 The Range Frame 3-4 The Font Specification Frame 3-5 The Graphics Specification Frame 3-5
Reading notes: Source appears to be a table of contents with no clear primary heading Chapter and section page numbers may be ambiguous due to OCR-style layout
- Languages
- English
PDF page 6
vi The Ruler Information Frame 3-5 Tab Frames 3-6 Initialization 3-6 SetStore 3-6 SetGeometry 3-7 Getting Info 3-8 GetRangeData 3-8 GetCountCharacters 3-9 FindString 3-9 GetWordRange 3-10 CharToPoint 3-10 PointToChar 3-11 GetLineRange 3-11 Editing 3-12 Cut 3-12 Copy 3-12 Paste 3-12 Clear 3-12 ChangeRangeRuns 3-13 ChangeRangeRulers 3-13 Replace 3-14 ReplaceAll 3-15 Storage 3-16 Externalize 3-16 Internalize 3-16 IsModified 3-17 Scrolling 3-17 Scroll 3-17 GetScrollValues 3-18 GetTotalHeight 3-18 GetTotalWidth 3-18 GetScrollableRect 3-18 ViewUpdateScrollersScript 3-19 Highlighting 3-19 GetHiliteRange 3-19 SetHiliteRange 3-19 GetContinuousRun 3-20 Ruler User Interface 3-20 ShowRuler 3-21 HideRuler 3-21 IsRulerShown 3-21 UpdateRulerInfo 3-22 Pages 3-22 GetCountPages 3-22 InsertPageBreak 3-22 Printing 3-22 SetDrawOrigin 3-23 protoTXViewFinder 3-23 FindString 3-24 GetCountCharacters 3-24
- Languages
- English
PDF page 7
vii GetRangeText 3-25 Chapter 4 Keyboard Enhancements ERS 4-1 Terminology 4-2 User Interface 4-2 General Usage 4-2 Text entry and editing 4-3 Slips, windows, and buttons: 4-3 Menus 4-5 The Command-key Combination Pop-up Help Slip 4-6 System and Built-in App Command Key Assignments 4-8 Command-key Assignments for The NotePad Application 4-10 Command-Key Assignments for The Names Application 4-10 Command-Key Assignments for The Dates Application 4-11 Command-Key Assignments for The In/Out Box 4-11 Command-Key Assignments for The Call Log 4-12 Command-Key Assignments for the BookPlayer 4-12 Keyboard Reference 4-12 Keystroke Handling 4-13 Intercepting Keystrokes Directly 4-14 IsCommandKeystroke 4-15 ViewKeyDownScript 4-15 ViewKeyUpScript 4-16 ViewKeyRepeatScript 4-17 Keystroke Event Sequencing 4-17 Intercepting Grouped Keystrokes 4-19 ViewKeyStringScript 4-19 Typing Without a Caret 4-19 The Caret Stack and Caret Activation 4-20 Obtaining The State Of a Key 4-21 IsKeyDown 4-21 Simulating Keystrokes 4-22 HandleKeyEvents 4-22 Command Key Handling 4-22 The Command-Key Mapping Frame 4-23 Searching for Key Commands 4-26 KeyMessage Definition and Invocation 4-28 Adding, Blocking, and Removing Key Commands 4-28 AddKeyCommand 4-28 AddKeyCommands 4-28 BlockKeyCommand 4-29 ClearKeyCommands 4-29 Looking Up KeyCommands 4-30 SendKeyMessage 4-30 FindKeyCommand 4-30 FindKeyCommand 4-31
Reading notes: Running page header and table of contents layout make the primary heading uncertain Caption 'GetRangeText 3-25' may be a running header rather than a heading
- Printed product names
- NotePad · Names · Dates · In/Out Box · Call Log · BookPlayer
- Languages
- English
PDF page 8
viii CategorizeKeyCommands 4-31 Displaying the Pop-up Command Key Help Slip 4-31 Faking a Button Press 4-32 PressButton 4-32 Designating the Default Button In a Slip 4-32 Designating a Slip’s Close Box 4-32 Default and Close Buttons in Confirm Slips 4-33 KeyCommands and Popup Menus 4-33 Compatibility 4-35 Default Buttons 4-35 Possible Key-view Compatibility Problem 4-35 Chapter 5 Newton OS 2.1 Grayscale Imaging ERS 5-1 Overview of Features 5-1 Terminology 5-2 Developer API 5-3 Color definitions in graphic shapes' style frame 5-3 Dithered Patterns 5-4 Text shapes 5-5 Color PICTs and bitmaps 5-5 Manipulating Bitmap Data 5-6 GrayShrink 5-7 Gray Text in clEditView Views 5-7 Gray viewFormat 5-7 Utility Functions 5-8 PackRGB 5-8 GetRed 5-8 GetGreen 5-8 GetBlue 5-8 GetTone 5-9 IsEqualTone 5-9 PtInCPicture 5-9 Compatibility Information 5-10 Chapter 6 Newton OS 2.1 Graphics Shapes ERS 6-1 Data Structures 6-1 Modifications to the Style Frame 6-1 Functions 6-2 New Functions 6-2 ConvertDropToShape 6-2 FindShape 6-3 GetPointsArrayXY 6-4 MakeInk 6-4 MungeShape 6-5
- Languages
- English
PDF page 9
ix PictToShape 6-5 Changed Functions 6-5 MakeShape now handles bitmaps with masks 6-6 GetStrokePointsArray filters more points and swaps point coordinates 6-6 Chapter 7 Newton OS 2.1 Sound ERS 7-1 Terminology 7-1 User Interface 7-2 Developer Interface 7-2 Sound Interface in 1.x Systems 7-2 Sound Interface in 2.0 Systems 7-3 PlaySoundAtVolume 7-3 PlaySoundIrregardless 7-3 PlaySoundIrregardlessAtVolume 7-3 PlaySoundEffect 7-3 Clicker 7-4 Sound Interface for Newton OS 2.1 7-4 GetSystemVolume 7-4 SetSystemVolume 7-4 GetSoundFrame 7-4 protoSoundChannel 7-5 Open 7-5 Close 7-5 Schedule 7-6 Start 7-6 Stop 7-6 Pause 7-6 SetVolume 7-7 GetVolume 7-7 IsPaused 7-7 IsActive 7-7 Sound Frame Format 7-7 Sound Result Frame Format 7-9 Sound Manager Error Codes 7-11 Compatibility Information 7-12 Sound Input 7-12 NewtonScript Interface 7-13 Devices and Channels 7-14 Input Gain 7-15 ProtoSoundChannel 7-15 IsOpen 7-16 NewRecording 7-17 NewInputBlock 7-17 SetInputGain 7-17 GetInputGain 7-18
Reading notes: Table of contents format; no headline or advertised content present
- Printed product names
- Newton OS 2.1 · PictToShape · ProtoSoundChannel
- Languages
- English
PDF page 10
Chapter 8 Dial-In Networks ERS
x ProtoSoundFrame 7-18 GetSampleCount 7-18 GetSampleSize 7-18 GetSamplingRate 7-19 GetPlayingTime 7-19 SetRecordingLength 7-19 MuLaw Compression 7-19 Setting Global Sound Preferences 7-20 Getting and Setting Input Gain 7-20 Getting or Setting Default Input or Output Devices 7-21 UserConfiguration Slots 7-21 Sound Recorder and Player 7-22 ProtoRecorderEngine 7-23 ProtoRecorderView 7-23 SoundPaper 7-24 Chapter 8 Dial-In Networks ERS 8-1 Data Structures 8-2 Access Frame 8-2 Network Frame 8-2 GetAccessNumbers 8-2 Global Functions 8-3 RegDialinNetwork 8-3 UnRegDialinNetwork 8-5 GetLocalAccessNums 8-5 GetAllDialinNetworks 8-6 GetDialinNetwork 8-7 Chapter 9 IrDA Communication Tool ERS 9-1 Overview 9-1 Terminology 9-2 User Interface 9-3 Using the IrDA Tool 9-4 IrDA Tool Options 9-8 Discovery Option 9-8 Connection Info Option 9-10 Serial Bit Rate Option 9-11 Receive Buffers Option 9-12 Link Disconnect Option 9-12 Connect User Data Option 9-13 Getting IrDa Tool Information 9-14 Slow IR Connect Option 9-17 IrDA Statistics Option 9-18
- Languages
- English
PDF page 11
xi Chapter 10 eMate 300 Multi-user ERS 10-1 Configuration UI 10-1 User Login Interface 10-7 Developer API 10-10 GetBackupSoupNames 10-10 MultiUserSwitch 10-10 GetUserConfig 10-11 GenSoupName 10-11 KClassroomAware slot 10-11 Compatibility Information 10-11
Reading notes: Source is a table-of-contents fragment with no headline or advertised content Section numbering and page references may be partially damaged or out of order
- Printed product names
- eMate 300
- Languages
- English