Macintosh Revealed Volume Three 1989
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
Macintosh Revealed
HAYDEN Macintosh Library BOOKS 48402 Macintosh® Revealed Mastering the Toolbox Volume Three • Includes Version 4.0 For All Macintosh Computers Stephen Chernicoff
A book cover with a teal-to-blue gradient background, a yellow top band with a red script 'Macintosh Library' logo, a framed central illustration of an arched dark doorway containing floating geometric solids such as cubes, pyramids, and a tall prism against a blue sky, and red wavy lines on either side of the frame.
Reading notes: Series label 'Macintosh Library' is in red script and partly stylized; spelling taken as printed. Publisher name 'HAYDEN' is in small caps at top left and 'BOOKS' at top right, reading order inferred. The catalog number 48402 is small and placed at upper right; included as printed.
- Printed product names
- Macintosh Revealed
- Languages
- English
PDF page 1
Macintosh Revealed
HAYDEN Macintosh Library BOOKS 48402 Macintosh® Revealed Mastering the Toolbox Volume Three • Includes Version 4.0 For All Macintosh Computers Stephen Chernicoff
A book cover with a teal-to-blue gradient background, a yellow top band, a red squiggle motif, and a framed photo-style illustration of geometric solids (pyramids, cubes, and a tall prism) inside a dark stone archway under a blue sky.
Reading notes: The 'Macintosh Library' script logo in red is stylized and was read as 'Macintosh Library'; the spelling may vary slightly on the logo. The number 48402 is small and was transcribed as shown.
- Printed product names
- Macintosh Revealed
- Languages
- English
PDF page 2
The image is an entirely blank white page with no visible artwork, layout elements, or text.
PDF page 3
Related Titles Macintosh® R evealed Volume One: U nlocking the Toolbox, Second Edition Siephen C hemicoff Volume Two: Programming with the Toolbox, Second Edition Stephen C hernicoff Volume Three: Mastering the Toolbox Siephen Chemicoff Volume Four: Programming the Macintosh® II (fortlxoming) Siephen Chernicoff and G eri Y ounggren How to Write Macintosh® Software, Second Edition Scott Kilaster MPW and Assembly Language Programming Scott Kronick IBM® PC and Macintosh® Networking: Featuring TOPS® and AppleShare® Steve ~l ich el Macintosh® Hard Disk Management C harles R ubin and 13cncion j. Calica Object-Oriented Programming for the Macintosh®, Second Edition (fortlxo111i11gJ Kurt j . Schmucker and Carl Nelson dBASE® M ac Programmer's Reference Guide Edward Jones HyperTalk™ Programming (Version 1.2), Revised Edition Dan Shafer HyperTaJkT MTips and Techniques (for1lxo111i11gJ D an Shafer The Waite Group's HyperTalk™ 2.0 Bible The Waite Group The Waite Group's Tricks of the H yperTalk TM Masters (fortlxo111i11R} 11 1e Waite G roup U sing ORACLE® with HyperCard(!j, (Jortlxo111i11gJ D an Shafer 680XO Programming by Example Stan Kelly-Bootle For t/Je retailer nearest you, or to order d irectly from tbe p 11blisber, call 80(J.428·SAMS. In Indiana, Alaska, and Ha waii call 3 17·298-5699.
Reading notes: Several characters appear damaged or misread, such as 'Siephen' and 'Chemicoff' spellings and 'j.' initials. Reading order of the book list is jumbled across columns.
- Printed product names
- Macintosh · HyperCard · dBASE · TOPS · AppleShare · IBM PC · ORACLE
- Languages
- English
PDF page 4
Macintosh Revealed
Macintosh® Revealed Volume Three: Mastering the Toolbox Stephen Chemicoff #f HAYDEN BOOKS A Division of Howard W. Sams & Company 4300 West 62nd Street Indianapolis. Indiana 46268 USA
Reading notes: Stray character '#f' appears between author name and publisher name
- Printed product names
- Macintosh
- Languages
- English
PDF page 5
For David, who is mastering his first language. e 1989 by Stephen Chemtcoff FIRSTEDmON FIRST PRINllNG-1989 All rights reserved. No part of this book shall be reproduced, stored in a retrieval system, or transmitted by any means, electronic, mechanical, photocopying, recording, or otheJWise, without written permission from the publisher. No patent liability ts assumed with respect to the use of the Information contained herein. While every precaution has been taken in the preparation of this book, the publisher and author assume no responsibility for errors or omissions. Neither is any ltabtltty assumed for damages resulting from the use of the Informa- tion contained herein. International Standard Book Number: 0-672-48402-1 Libraiy of Congress Catalog Card Number: 85-8611 Acqutstttons Editor: Greg Michael Development Editor: C. Herbert Feltner Technical Review: Scott Knaster Editor: Albright Communl.catlons, Inc. Cover Design: Celeste Design Indexer: Ted Laux Composition: Hartman PubUshlng Printed tn the Unlled States of America Trademark Acknowledgmenu All terms mentioned in this book that arc known to be trademarks or sCIVicc marks arc listed below. In addttion, terms suspected of being trademarks or sCIVice marks have been appropri- ately capitalized. Howard W. Sams & Company cannot attest to the accuracy of this Informa- tion. Use of a term in this book should not be regarded as affecting the validity of any trademark or service mark. Apple, the Apple Logo, AppleTalk, lmageWriter, Macintosh, LaserWriter, and Lisa arc registered trademarks of Apple Computer Inc. Hypetralk and MPW are trademarks of Apple Computer Inc. MacPaint, MacDraw, and MacWrite arc registered trademarks of Claris Corp. MC68000, MC68020, and MC68881 arc trademarks of Motorola, Inc. SY6522 ts a trademark of Syncrtek, Inc. Postscript ts a registered trademark of Adobe Systems, Inc. Turbo Pascal ts a registered trademark of Borland International. Ltghtspeed Pascal ts a trademark of1HINK Technology, dtv. of Symantec Corp. "'The Pause That Refreshes" ts a slogan of The Coca-Cola Company and ls used by permission.
Reading notes: OCR-damaged characters in copyright and trademark acknowledgments (e.g., 'Libraiy', 'Acqutstttons', 'Ltghtspeed') Catalog number '85-8611' is a Library of Congress catalog number rather than a visible date
- Printed product names
- Apple · Apple Logo · AppleTalk · lmageWriter · Macintosh · LaserWriter · Lisa · Hypetralk · MPW · MacPaint · MacDraw · MacWrite · MC68000 · MC68020 · MC68881 · SY6522 · Postscript · Turbo Pascal · Ltghtspeed Pascal
- Printed dates
- 1989 · 85-8611
- Languages
- English
PDF page 6
Contents Preface x Acknowledgments Chapter 1 Mastering the Tools 1 Chapter2 Rolling Your Own 5 Customizing QulckDraw 5 Customizing Windows 9 Customizing Controls 41 Customizing Menus 52 Nuts and Bolts 54 Reference 57 2.1 Customizing QulckDraw 57 2.1.1 Bottleneck Record 57 2.1.2 Low-Level Bit Transfer 59 2.1.3 Line Drawing 60 2.1.4 Shape Drawing 62 2.1.5 Text Drawing 64 2.1.6 Picture Processing 66 2.1.7 Picture Comments 68 2.2 Customizing Windows 69 2.2.1 Window Definition Function 69 2.2.2 Creating and Destroying Windows 72 2.2.3 Drawing Windows 73 2.2.4 Resizing Windows 74 2.2.5 Locating Mouse Clicks 75 v
Reading notes: OCR reads 'QulckDraw' in the table of contents, likely a misrecognition of 'QuickDraw'
- Languages
- English
PDF page 7
vi Mastering the Toolbox ~~~~~~~~~~~~- 2.3 Customizing Controls 77 2.3.1 Control Definition Function 77 2.3.2 Creating and Destroying Controls 79 2.3.3 Drawing Controls 80 2.3.4 Locating Mouse Clicks 81 2.3.5 Tracking and Positioning 82 2.4 Customizing Menus 84 2.4.1 Menu Deflnitlon Procedure 84 2.4.2 Menu Display 86 2.4.3 Locating Mouse Clicks 87 2.5 Customizing-Related Resources 88 2.5.1 Resource Type 'WDEF ' 88 2.5.2 Resource Type ' CDEF ' 89 2.5.3 Resource Type 'MDEF ' 90 2.5.4 Owned Resources 90 Chapter3 In the Drlver•s Seat 93 Driver Identification 94 Working with Drivers 95 The Device Control Entry 97 Driver Structure 101 Reference 105 3.1 Driver-Related Data Structures 105 3.1.1 Driver Structure 105 3.1.2 Driver Flags 108 3.1.3 Unit Table 110 3.1.4 Device Control Entry 113 3.1.5 Driver 1/0 Queue 116 3.1.6 Operating System Queues 118 3.1.7 Manipulating Queues 120 3.2 Driver Operations 122 3.2.1 Opening and Closing Drivers 122 3.2.2 Reading and Writing 123 3.2.3· Device Control 124 3.3 Driver-Related Resources 126 3.3.1 Resource Type ' DRVR' 126
Reading notes: Table of contents with OCR-style errors such as 'Deflnitlon', 'Drlver•s', and 'Operating System Queues' spacing. Some page numbers and dotted leaders are ambiguous in the extracted text.
- Languages
- English
PDF page 8
vii Contents Chapter 4 Looking Good on Paper 127 r.t:acintoshPrinters 128 The Printer Resource File 130 Imaging and Printing 135 Print Records 139 Printing-Related Dialogs 150 Document Printing 152 Printing the Spool File 174 Printing from the Finder 184 Nuts and Bolts 189 Reference 197 4.1 Printing-Related Data Structures 197 4.1.1 Printing Port 197 4.1.2 Print Record 198 4.1.3 Printer Information Subrecord 200 4.1.4 Style Subrecord 202 4.1.5 Job Subrecord 205 4.1.6 Auxiliary Information Subrecord 209 4.1.7 Printing Status Record 211 4.2 Preliminary Operations 213 4.2.1 Initializing the Toolbox for Printing 213 4.2.2 Initializing Print Records 214 4.2.3 Printing-Related Dialogs 215 4.2.4 Error Reporting 216 4.3 Document Printing 218 4.3.1 Opening and Closing a Document 218 4.3.2 Page Imaging 219 4.3.3 Spool Printing 221 4.4 Low-Level Printing 223 4.4.1 Opening and Closing the Printer Driver 223 4.4.2 Printer Driver Attributes 224 4.4.3 Low-Level Operations 225 4.4.4 Bit Map Printing 226 4.4.5 Text Streaming 227 4.4.6 Screen Printing 228 4.4.7 Printer Control 229 4.4.8 Font Support 231 4.4.9 Font Characterization Table 234
Reading notes: Source is a table of contents; no headline or advertised products, prices or dates are present. "r.t:acintosh" appears to be a damaged rendering of "Macintosh" in the contents listing.
- Languages
- English
PDF page 9
vill Mastering the Toolbox ~~~~~~~~~~~~ Chapter 5 Chapter 6 4.5 Nuts and Bolts 4. 5.1 Customizing the Printing Dialogs 4.5.2 Customizing Paper Sizes 4.6 Printing-Related Resources 4. 6.1 Resource Type ' PREC ' 4.6.2 Resource Type' PDEF' 4.6.3 Printer Resource Files Sound and Fury Fundamental Concepts The Sound Generator Defining and Playing Sounds Reference 5.1 Defining Sounds 5.1.1 Types of Sound 5.1.2 Square-Wave Sound 5.1.3 Four-Tone Sound 5.1.4 Free-Form Sound 5.2 Playing Sounds 5.2.1 Starting and Stopping Sounds 5.2.2 Speaker Volume Playing with a Full Desk Life as a Desk Accessory Desk Accessory Structure Stopwatch: A Simple Desk Accessory The Open Routine The Control Routine The Close Routine Reference 6.1 Desk Accessory Structure 6.1.1 Event Mask 6. 1. 2 Control Codes 6.2 Desk Accessory Operations 6. 2.1 Opening and Closing Desk Accessories 6.2.2 Responding to Events 6.2.3 Handling Menu Commands 6.2.4 Performing Periodic Tasks 235 235 238 240 240 241 243 247 2.47 251 254 267 267 267 268 271 274 276 276 278 281 282 284 286 289 302 320 323 323 323 326 328 328 330 332 334
Reading notes: Table of contents page numbers are listed without clear chapter association; the numeric list appears to be page references rather than dates. Some OCR-like spacing artifacts in headings such as '4. 5.1' and '6. 1. 2' may be extraction noise.
- Printed dates
- 235 · 238 · 240 · 241 · 243 · 247 · 251 · 254 · 267 · 268 · 271 · 274 · 276 · 278 · 281 · 282 · 284 · 286 · 289 · 302 · 320 · 323 · 326 · 328 · 330 · 332 · 334
- Languages
- English
PDF page 10
ix Contents 6.3 Keyboard Routines 6.3.1 Resource 'fype 'FKEY' Appendix A Appendix B Appendix C Appendix D Appendix E Appendix F Appendix G Appendix H Glossary Index Toolbox Summary Resource Formats Reference Figures Reference Tables Error Codes Summary of Trap Macros and Trap Words Summary of Assembly-Language Variables Program Listings 335 335 337 361 367 371 377 385 415 421 553 597
Reading notes: Table of contents page; no advertised products, prices, or dates present.
- Languages
- English
PDF page 11
Preface 'W:ien I wrote the o:rlglnal Maclniosh Revealed back fn 1984, perhaps the hardest part of the job was knowing where to stop. There are so many features in the Macintosh Toolbox, so many ways to use it, so many options and capabilities it places at your disposal, that the two volumes and 1100-odd pages of that first edition could easily have run twice as long and still not exhausted the subject. (If you don't believe this, just look at Apple's own official handbook. Inside Macintosh, now in its fifth volume and counting.) But as always. stubborn realities intervened. Apple had a whole team of highly talented writers to produce its technical documenta- tion; I had only one keyboard and one badly worn set of fingers. Besides. I could only stuff so many pages into each volume without breaking the binding machine, and the publisher was hoping to have the book in the stores sometime before the turn of the millennium. Much as I would have liked to cover everything, I had to make some hard choices about which topics to include and which to leave out. This book gives me a chance to fill in some of those omissions. Here you'll learn how to print documents on paper from a Macintosh program, generate sounds through the built-in speaker, write a working desk accessory, design your own windows and menus, and more. Volume One unlocked the Toolbox and Volume Two showed you how to structure your application programs around it. Volume Three will take you the next step on the road to mastering its secrets and subtleties. As a Macintosh philosopher once said, the journey is the reward. xi
Reading notes: Line-break and hyphenation artifacts such as 'Maclniosh' and 'fn' may reflect OCR errors in the source text. The phrase 'a Macintosh philosopher once said' is quoted without attribution in the source.
- Printed product names
- Macintosh Toolbox · Inside Macintosh
- Printed dates
- 1984
- Languages
- English