On Macintosh Programming Advanced Techniques 1990
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
On Macintosh® Programming: Advanced Techniques
DANIEL K. ALLEN Addison-Wesley On Macintosh® Programming: Advanced Techniques
Book cover with a red header band bearing the author name and Addison-Wesley publisher logo, over a cream background covered in a black perspective grid with bold black stacked title lettering and thin orange, red, and magenta horizontal stripes on the left.
Reading notes: The registered trademark symbol after Macintosh is small and may be approximated; the title lines are stacked with overlapping letterforms that were read as printed.
- Printed product names
- Macintosh
- Languages
- English
PDF page 1
DANIEL K. ALLEN Addison-Wesley On Macintosh® Programming: Advanced Techniques
A book cover with a red band across the top holding the author name and publisher logo, over a cream background with a black perspective grid pattern and three thin colored horizontal stripes (yellow, orange-red, magenta) crossing the bold black title.
Reading notes: Title text is stylized display type; the 'Programming:' and 'Techniques' lines are overlapped by the grid lines but remain legible. The ® symbol after Macintosh is small and placed above the word; included as printed.
- Printed product names
- Macintosh
- Languages
- English
PDF page 2
A plain, entirely blank white page with no artwork, layout elements, or markings visible.
Reading notes: No visible text was found on the image, so transcript and printed fields are empty.
PDF page 3
On Macintosh Programming: Advanced Techniques
On Macintosh Programming: Advanced Techniques DANIEL K. ALLEN ..... ...... Addison-Wesley Publishing Company, Inc. Reading, Massachusetts Menlo Park, California New York Don Mills, Ontario Wokingham, England Amsterdam Bonn Sydney Singapore Tokyo Madrid San Juan
Reading notes: Publisher and location lines contain irregular spacing from extraction but are legible
- Languages
- English
PDF page 4
On Macintosh programming : advanced techniques
Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in this book and Addison-Wesley was aware of a trademark claim, the designations have been printed in initial capital letters (i.e., Macintosh is a registered trademark of Apple Computer, Inc.). Library of Congress Cataloging-in-Publication Data Allen, Daniel K. On Macintosh programming : advanced techniques I Daniel K. Allen. p. cm. ISBN 0-201-51737-X 1. Macintosh (Computer)--Programming. I. Title QA76.8.M3A445 1990 89-39855 005.265--dc20 CIP Copyright © 1990 by Daniel K. Allen All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, electronic, mechanical, photocopying, recording, or otherwise, without the prior written permission of the publisher. Printed in the United States of America. Published simultaneously in Canada. This book was written, organized, indexed, and formatted by the author, using the following tools: Apple Macintosh SE 2.5/40 with Radius Accelerator 16, Apple LaserWriter Plus, Microsoft Word 4.0, Microsoft Excel 1.5, Apple HyperCard 1.2.2, Apple MPW 2.0 and 3.0, and many of the tools presented in this book. Sponsoring Editor: Carole McClendon Technical Editor: Tony Meadow Technical Reviewers: Paul Finlayson and Tom Taylor Cover Design: Doliber Skeffington Text Design: Total Concept Associates Set in 11-point Times Roman by Perry Mcintosh 0-201-51737-X ABCDEFGHIJ-AL -89 First printing, December 1989
Reading notes: OCR spacing irregular in the cataloging block (e.g., 'On Macintosh programming') and the spelling 'Perry Mcintosh' is preserved as printed
- Printed product names
- Macintosh · Apple Macintosh SE 2.5/40 · Radius Accelerator 16 · Apple LaserWriter Plus · Microsoft Word 4.0 · Microsoft Excel 1.5 · Apple HyperCard 1.2.2 · Apple MPW 2.0 · Times Roman
- Printed dates
- 1990 · 89-39855 · December 1989
- Languages
- English
PDF page 5
The image is a entirely blank white page with no visible artwork, layout, or markings.
PDF page 6
CONTENTS Preface INTRODUCTION How This Book Is Organized Conventions History of Macintosh CHAPTER 1 THE MACINTOSH ARCHITECTURE The Macintosh Software Architecture The Macintosh Hardware Architecture Memory Map Memory Mapped 1/0 Register Saving Conventions Parameter Passing Conventions A5 World Low-memory Globals The A-trap Dispatcher ATrap-C Tool LoMem-C Tool Ascii-C Tool Conclusion Recommended Reading CHAPTER 2 THE MACINTOSH OPERATING SYSTEM Process Management The Memory Manager Heap Zones and Subzones Pointers xvii xxi xxi xx ii XXll 1 3 3 4 5 6 7 8 8 11 18 23 24 25 26 26 27 28 28 vii
Reading notes: Source text is a table of contents with page numbers; roman numeral page references and an OCR-split entry ("xx ii", "1/0") may be misread.
- Languages
- English
PDF page 7
Viii CONTENTS CHAPTER3 Handles and Master Pointers Memory Allocation Algorithm Memory Manager Routines The Segment Loader Segmentation Bugs Creating Processes Under the Finder MultiFinder The File System Low- and High-level Routines Param Blocks Types and Creators Finder Information High-level File System Routines Data Organization on Volumes The Input/Output System Apple Talk The Start Code and the Boot Process System Error Handler Boot Blocks Booting Continued Booting-Installing MacsBug Booting-Installing Patches and INITs OSPeek-Pascal Desk Accessory ADBKey-Assembly Language INIT Zero-C Tool Conclusion Recommended Reading QUICKDRAW Graphics Ports Bit Maps Coordinate Systems Graphics Operations Patterns Cursors Icons Color QuickDraw The Font Manager 28 30 31 32 34 34 36 38 38 39 40 42 42 44 46 47 49 50 52 54 54 55 56 69 70 73 74 75 76 77 78 79 81 81 82 83 83
Reading notes: Source appears to be a table of contents rather than advertising copy; no headline, products, prices or dates are explicitly advertised.
- Languages
- English
PDF page 8
The Print Manager Mandel-Pascal Application Mandel.r-Rez Source Code for Resources Graph-C Tool MacQ-C Application MacQ.r-Rez Source Code for Resources Conclusion Recommended Reading CHAPTER 4 THE MACINTOSH TOOLBOX The Resource Manager Resource Maps Resource Attributes Resource Manager Routines The Event Manager FKEYs Mouse Events Key Events Activate and Update Events Other Events The Window Manager Drawing in Windows Auxiliary Window Routines The Control Manager The Menu Manager Menus and the User Interface TextEdit The Dialog Manager Dialogs and the User Interface The Desk Manager The Scrap Manager Utilities OS Utilities Toolbox Utilities Package Manager Pack 0--List Manager Pack 2-Disk Initialization Pack 3-StdFile CONTENTS ix 86 87 99 100 107 118 120 120 1 21 122 126 126 127 128 130 130 131 131 132 132 133 134 135 136 138 138 139 141 143 144 144 144 145 145 145 146 146
Reading notes: Source is a table of contents rather than advertising copy; no advertised products or prices are present. Page numbers in the contents list are not reliably aligned with entries.
- Languages
- English
PDF page 9
X CONTENTS Pack 4-SANE Arithmetic Pack 5-SANE Transcendentals Pack 6-Intemational String Utilities Pack 7-Binary-Decimal Conversions Pack 12-Color Picker Dump-C Tool ListRsrc-C Tool CleanRsrc-C Tool MacsBugKey-Assembly Language FKEY RotateWindows-Assembly Language FKEY MF Switcher-Assembly Language FKEY Conclusion Recommended Reading CHAPTER 5 SANE SANE Functionality History of SANE Software SANE versus 68881 SANE Portability Among Numeric Environments NaNs and Infinities Remainders, Modulo, and Rounding Fixed and Fract Arithmetic NumTheory-C Tool Hash-C Tool Rand-C Tool Solar-Pascal Tool Sun-Pascal Tool Sun-C Tool Det-C Tool Conclusion Recommended Reading CHAPTER 6 M PW History of MPW MPW Overview The MPW Interface 146 146 146 147 147 147 152 156 159 159 160 161 161 162 162 163 164 165 167 168 169 170 174 177 182 193 198 203 207 208 209 209 211 211
Reading notes: Table of contents page; no product names, prices, or dates are advertised in the copy. Some page numbers and words are run together or spaced irregularly in the extracted text, such as 'Intemational' and 'Solar-Pascal'.
- Languages
- English
PDF page 10
CONTENTS Xi Shell Command Language 213 Alias Substitution 213 Evaluation of Structured Constructs 214 Variable and Command Substitution 214 Blank Interpretation, File Name Generation, I/0 Redirection, and Execution 215 MPW Shell Built-In Commands 216 MPW Documentation 218 MPW Tools 219 MPW Text Tools 221 MPW Object Tools 222 MPW Resource Tools 222 Startup-Shell Script 223 MakeCTool-Make Script 228 MakeCTool68881-Make Script 230 Build-Shell Script 230 BuildTools-Shell Script 231 RenameWild-Shell Script 232 InitDisks-Shell Script 233 DeleteUnits-Shell Script 234 CompareSources-Shell Script 234 LibList-Shell Script 235 Ob j-C Tool 235 An XCMD Library Project 239 TwoCol-C Tool 251 Conclusion 253 Recommended Reading 253 CHAPTER? ASSEMBLY LANGUAGE The MPW Assembler The 95-percent/5-percent Rule Leaming Assembly Language Memory-Assembly Language Desk Accessory DKAD-Assembly Language Application Shell DKAD.r-Rez Source Code for DKAD Resources DisAsm-C Tool Conclusion Recommended Reading 255 255 256 257 258 264 274 281 285 285
Reading notes: Source is a table of contents; no headline or advertised products are present. OCR-like spacing in entries such as 'Ob j-C Tool' and 'I/0' is uncertain.
- Languages
- English
PDF page 11
Xii CONTENTS CHAPTER 8 THE C LANGUAGE History of C Building C Tools A Note for MPW C 2.0 Users DeCom-C Tool FastCat-C Tool Substitute-C Tool Reduce-C Tool Sign-C Tool Squash-C Tool WordText-C Tool Text Tool-C Tool TextTool.r-Rez Source Code for a Commando Interface Sort-C Tool Sort.r-Rez Source Code for a Commando Interface Index-C Tool Options Examples lndex.r-Rez Source Code for a Commando Interface Conclusion Recommended Reading CHAPTER9 THE PASCAL LANGUAGE History of Pascal Apple's Pascals Apple's Object-oriented Pascals Pascal on Macintosh Today Object Pascal MacApp StyleTest-Pascal Application StyleTest.r-Rez Source Code for StyleTest Resources GraphSort-Pascal Application Conclusion Recommended Reading 286 286 287 288 289 290 293 294 296 298 300 303 310 313 321 323 324 327_ 347 352 352 353 353 354 355 355 356 356 357 369 371 387 388
Reading notes: Table of contents page numbers appear in a run without clear alignment to entries Some OCR-like irregularities such as 'lndex' and '327_' may be damaged characters
- Languages
- English