← Macintosh Revealed, Volume Four: Expanding the Toolbox

Macintosh Revealed, Volume Four: Expanding the Toolbox

From the originals

13 scans

Machine-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 Macintosh® Revealed Expanding the Toolbox Volume Four • Covers programming the Macintosh® II & Macintosh® SE • Add color and style to your Macintosh programs • Take full advantage of the MultiFinder™ features Stephen Chernicoff

A book cover with a purple-to-gray gradient background, a green top band, a cyan wavy line, and a central framed photo of geometric metallic prisms and cubes set in an arched architectural niche against a blue sky.

Reading notes: Bullet text and italic subtitle are small and stylized; wording transcribed as best read. The series name in the top band is in a stylized script and was read as 'Macintosh Library'.

Printed product names
Macintosh II · Macintosh SE
Languages
English
PDF page 1

Macintosh Revealed

HAYDEN Macintosh Library BOOKS Macintosh® Revealed Expanding the Toolbox Volume Four • Covers programming the Macintosh® II & Macintosh® SE • Add color and style to your Macintosh programs • Take full advantage of the MultiFinder™ features Stephen Chernicoff

A book cover with a purple-to-gray gradient background, a green top band with a cyan script 'Macintosh Library' logo, a framed photo of dark geometric prisms and pyramids in an arched architectural niche against a blue sky, and a cyan wavy line across the middle.

Reading notes: Bullet point and small italic subtitle text are slightly stylized and may vary in exact glyph rendering. The 'Macintosh Library' script in the top band is decorative and transcribed as best read.

Printed product names
Macintosh · Macintosh II · Macintosh SE
Languages
English
PDF page 2

The image is an entirely blank white page with no visible artwork, layout, or printed content.

Reading notes: No visible text found; the page appears blank.

PDF page 3

RELATED T I T L E S Macintosh® Revealed Volume 1: Unlocking the Toolbox, Second Edition Stephen Chemicoff Macintosh® Revealed Volume 2: Programming with the Toolbox, Second Edition Stephen Chemicoff Macintosh® Revealed Volume 3: Mastering the Toolbox Stephen Chemicoff The Macintosh® Advisor (Updated for MultiFinder ™) Cynthia Harriman and Bencion Calica How to Write Macintosh® Software, Second Edition Scott Knaster Macintosh® Hard Disk Management, Second Edition Charles Rubin and Bencion Calica Object-Oriented Programming for the Macintosh®, Second Edition Kurt]. Schmucker and Carl Nelson (forthcoming) HyperTalk® Programming (Version 1.2), Revised Edition Dan Shafer Understanding HyperTalk TM Dan Shafer Using ORACLE® with HyperCard® Dan Shafer Personal Publishing with the Macintosh® (Featuring PageMaker® Version 2.0), Second Edition Teny M. Ulick The Waite Group's HyperTalk® Bible The Waite Group The Waite Group's Tricks of the HyperTalk® Masters The Waite Group For the retailer nearest you, or to order directly from the publisher, call 800-257-5755. International orders telephone 609-461-6500.

Reading notes: Second author for 'Object-Oriented Programming for the Macintosh®' is printed as 'Kurt]. Schmucker' and may contain a damaged character '(forthcoming)' status line sits between entries and its association with a title is unclear

Printed product names
Macintosh® Revealed Volume 1: Unlocking the Toolbox, Second Edition · Macintosh® Revealed Volume 2: Programming with the Toolbox, Second Edition · Macintosh® Revealed Volume 3: Mastering the Toolbox · The Macintosh® Advisor (Updated for MultiFinder ™) · How to Write Macintosh® Software, Second Edition · Macintosh® Hard Disk Management, Second Edition · Object-Oriented Programming for the Macintosh®, Second Edition · HyperTalk® Programming (Version 1.2), Revised Edition · Understanding HyperTalk TM · Using ORACLE® with HyperCard® · Personal Publishing with the Macintosh® (Featuring PageMaker® Version 2.0), Second Edition · The Waite Group's HyperTalk® Bible · The Waite Group's Tricks of the HyperTalk® Masters
Printed dates
Version 1.2 · Version 2.0 · Volume 1 · Volume 2 · Volume 3
Languages
English
PDF page 4

Macintosh Revealed

Macintosh® Revealed Volume Four: Expanding the Toolbox Stephen Chernicoff HAYDEN BOOKS A Division of Howard W. Sams & Company 11711 North College, Suite 141. Carmel, IN 46032 USA

Printed product names
Macintosh
Languages
English
PDF page 5

For Helen, who is always there. @1990 by Stephen Chemicoff FIRST EDITION FIRST PRINTING-1990 All rights reseived. No part of this book shall be reproduced, stored In a retrieval system, or transmitted by any means. electronic, mechanical, photocopying. recording, or otherwise, without written permission from the publisher. No patent liability is assumed with respect to the use of the information contained herein. While every precaution has been taken in the preparation of this book, the author and publisher assume no responsibility for errors or omissions. Neither is any liability assumed for damages resulting from the use of the information contained herein. International Standard Book Number: <H>72-484 l 3-7 Library of Congress Catalog Card Number: 85-8611 Acquisitions Editor: Greg Michael Development Editor: C. Herbert Fellner Editor: Albright Communications, Inc. Cover Design: Celeste Design Indexer: Sharon Hilgenbery Production Coordinator: Becky Imel Production: William Hartman, Matj Hopper, Jodi Jensen, David Kline, Lori Lyons, Jennifer Matthews, Dennis Sheehan, Bruce D. Steed, Nora Westlake Composition: Hartman Publtshtng Printed in the UnUed. Stales ofAmerica Trademark Acknowledgments All terms mentioned in this book that are known to be trademarks or service marks arc listed below. In addition, terms suspected of being trademarks or service marks have been appropriately capitalized. Howard W. Sams & Company cannot attest to the accuracy of this lnfonnaUon. 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, Macintosh, lmageWrtter, LascrWrlter, AppleTalk, A/UX. and Lisa arc registered trademarks of Apple Computer Inc. Crayola Is a registered trademark of Binney & Smith, Inc .• and Is used with permission. Finder, MultiFlnder, Switcher, Apple Desktop Bus, HyperTalk. HypcrCard. APDA. and MPW are trademarks of Apple Computer Inc. MacPaint Is a registered trademark of Claris Corp. Motorola, MC68000, MC68010, MC68020, MC68030, MC68881, MC68882, and MC68851 are trademarks of Motorola, Inc. NuBus ts a trademark of Texas Instruments. PostScript ts a trademark of Adobe Systems, Inc. Sony is a trademark of Sony Corporation. UNIX is a registered trademark of AT&T Information Systems. SY6522 is a trademark of Synertek, Inc. Z8530 is a trademark ofZilog, Inc.

Reading notes: OCR damage in copyright and front matter lines (e.g., 'reseived', 'Stales', 'UnUed') and ISBN digits Reading order of trademark acknowledgments and dedication may be uncertain

Printed product names
Apple · Macintosh · AppleTalk · A/UX · Lisa · Crayola · Finder · Switcher · Apple Desktop Bus · HyperTalk · APDA · MPW · MacPaint · Motorola · MC68000 · MC68010 · MC68020 · MC68030 · MC68881 · MC68882 · MC68851 · NuBus · PostScript · Sony · UNIX · SY6522 · Z8530
Printed dates
1990 · 85-8611
Languages
English
PDF page 6

Contents Preface xiii Acknowledgments xv Chapter 1 Mac by Popular Demand 1 Chapter 2 Old Genies in New Bottles 5 System Configuration 5 Dispatch Table Access 8 Shutdown and Restart 14 Memory Management 15 Memory Layout 16 Memory Allocation 18 Small Fractions 19 Reference 21 2.1 System Conf"iguration 21 2.1.1 Operating Environment 21 2.1.2 Dispatch Table 26 v

Reading notes: Possible damaged character in 'Conf"iguration' in the table of contents entry 2.1. Chapter entries are listed with page numbers that may be misaligned in extraction.

Languages
English
PDF page 7

vi Expanding the Toolbox 2.1.3 Memory Address Mode 30 2.1.4 Global Variable Access 33 2.1.5 Shutdown and Restart 35 2.1.6 Shutdown Procedures 36 2.2 Memory 38 2.2.1 Memory Layout 38 2.2.2 Memory Allocation 40 2.2.3 Temporary Allocation 43 2.2.4 Available Temporary Space 45 2.3 Resources 46 2.3. l Resource 'fypes 46 2.3.2 ROM-Based Resources 50 2.4 Arithmetic 53 2.4.1 Small Fractions 53 Chapter3 Going for the Juggler 55 Memory Partitions 57 Foreground and Background 58 Background Processing 60 Suspend and Resume Events 62 Cursor Control 68 Notifications 71 Nuts and Bolts 73 Desk Accessories and MultlFinder 73 Faking It 74 MultiFinder Etiquette 76 Reference 79 3.1 Events 79 3.1.1 Event Messages 79 3.1.2 Event Modifiers 81 3.1.3 Retrieving Events 83 3.2 Notifications 86 3.2.1 Notification Records 86 3.2.2 Posting Notifications 88 3.2.3 Response Procedures 90 3.3 Resource Formats 91 3.3.1 Resource fype 'SICN' 91 3.3.2 Resource fype 'SIZE' 92 3.3.3 MultiFinder Flags 94 3.3.4 Resource fypes 'mstr' and 'mstfl• 95

Reading notes: Table of contents with page numbers; some characters appear damaged (e.g., 'fypes', 'mstfl•', 'MlutiFinder' spacing) and uncertain. Reading order is a contents listing rather than body text; some entries are fragmentary.

Languages
English
PDF page 8

Chapter4 vii Contents Chasing Rainbows Color Fundamentals Physical Properties of Color Physiological Properties of Color Color on the Screen Color on Paper Toolboz Color Representation Planar Color Direct Color Mapped Color The Color Picker Graphics Devices Color Tables Structure of Color Tables Inverse Tables Color Table Management Color Palettes Color Usage Creating and Destroying Palettes Reference 4.1 Classic Color Model 4.1.1 Color Values 4.1.2 Foreground and Background Colors 4.1.3 Color Plane 4.2 Color Representation 4.2.1 Color Formats 4.2.2 Color Conversion 4.2.3 The Color Picker 4.3 Graphics Devices 4.3. l Device Records 4.3.2 Creating and Destroying Devices 4.3.3 Device List 4.3.4 Current Device 4.3.5 Device Attributes 4.4 Color Tables 4.4.1 Color Table Structure 4.4.2 Inverse Tables 4.4.3 Creating and Destroying Color Tables 4.4.4 Color Mapping 4.4.5 Color Table Management 4.4.6 Protecting and Resetvlng Entries 97 98 98 99 100 101 102 102 104 106 106 108 111 112 112 115 116 117 119 121 121 121 124 125 126 126 128 131 133 133 136 138 139 141 143 143 146 148 149 151 154

Reading notes: Section heading 'Color Fundamentals' and the chapter number line 'Chapter4' are reproduced as printed in the source text.

Languages
English
PDF page 9

Viii Expanding the Toolbox ~~~~~~~~~~~- Chapter 5 4.5 Color Palettes 4.5.1 Palette Records 4.5.2 Initlallztng the Toolbox for Palettes 4.5.3 Creating and Destroying Palettes 4.5.4 Setting Palette Colors 4.5.5 Palette Conversion 4.6 Nuts and Bolts 4.6. l Custom Matching Routines 4.6.2 Installing Matching Routines 4. 7 Color-Related Resources 4.7.1 Resource Type 'clut' 4.7.2 ResourceType 'pltt' Showing Your Colors Pixel Maps Color Graphics Ports Structure of Color Ports Opening and Closing Color Ports Pixel Pattems Color Transfer Modes Additive and Subtractive Modes Other Arithmetic Modes Transparency and Highlighting Mixing Color and Monochrome Drawing in Color Setting Drawing Colors Line and Shape Drawtng Direct Pixel Transfer Color Table Animation Nuts and Bolts Reference 5.1 Graphical Foundations 5.1.1 Pixel Maps 5.1.2 Creating and Destroying Pixel Maps 5.1.3 Color Graphics Ports 5.1.4 Auxiliary Port Record 5.1.5 Creating and Destroying Color Ports 5.1.6 PixelAccess 5.1. 7 Error Reporting 155 155 158 158 160 161 163 163 165 166 166 168 171 171 174 175 176 177 180 181 182 183 185 187 189 189 191 193 195 197 197 197 200 201 205 206 209 210

Reading notes: Table of contents with OCR-like spacing artifacts (e.g., 'Initlallztng', '4.6. l'), possibly damaged characters. Heading and page-number columns may be misaligned in reading order.

Languages
English
PDF page 10

Contents 6.2 Plzel Patterns 211 5.2.1 Pixel Pattern Structure 211 5.2.2 Creating and Destroying Pixel Patterns 214 5.2.3 Filling Pixel Patterns 215 5.2.4 Using Pixel Patterns 216 6.S Color Transfer llodea 217 5.3.1 Mode Constants 217 5.3.2 Additive and Subtractive Modes 219 5.3.3 Comparative and Comblnatlve Modes 221 5.3.4 Transparency and Highlighting 222 6.4 Color Drawing Operations 224 5.4.1 Foreground and Background Colors 224 5.4.2 Shape Drawing 226 5.4.3 Color Table Animation 228 5.4.4 Low-Level Pixel Transfer 229 5.4.5 Special Operations 232 6.6 Nuts and Bolts 235 5.5.1 Color Bottleneck 235 6.6 Resource Formats 238 5.6. l Resource Type ' pp at ' 238 Chapters Through Rose-Colored Windows 241 Color Icons and Cursors 242 Color Icons 242 Color cursors 243 Color Windows 244 Window Color Tables 245 Auxiliary Window Records 246 Window Palettes 249 Color Controls 250 Color Dialogs 252 Color Menus 254 Reference 259 8.1 Color Icons 259 6.1.1 Color Icon Structure 259 6.1.2 Using Color Icons 261 8.2 Color Cursors 262 6.2.1 Color Cursor Structure 262 6.2.2 Using Color cursors 265

Reading notes: OCR section numbering is inconsistent (e.g., '6.2 Plzel Patterns' and '5.2.1' headings), so chapter numbers may be misread. Several headings contain garbled characters such as 'Plzel', 'llodea', 'Comblnatlve', and 'Rose-Colored Windows' heading appears to be partially cut off.

Languages
English
PDF page 11

Expanding the Toolbox 6.3 Color Windows 266 6.3.1 Color Window Records 266 6.3.2 AuxillaryWindow Records 268 6.3.3 Window Color Tables 270 6.3.4 Creating Color Windows 273 6.3.5 Color Window ProperUes 274 6.3.6 Window Palettes 276 6.3. 7 Screen Properties 277 6.4 Color Controls 278 6.4.1 Auxiliary Control Records 278 6.4.2 Control Color Tables 280 6.4.3 Color Control ProperUes 282 6.5 Color Dialogs 284 6.5.1 Creating Color Dialogs 284 6.6 Color Menus 286 6.6.1 Menu Color Information Tables 286 6.6.2 Access to Menu Colors 289 6.6.3 Managing Menu Colors 290 6. 7 Resource Formats 292 6.7.1 Resource fype 'cicn' 292 6.7.2 Resource fype 'crsr' 294 6.7.3 Window Color Table Resources 295 6.7.4 Resource fype 'cctb' 297 6.7.5 Resource fype 'ictb' 298 6.7.6 Text Style for Dialog Items 299 6. 7. 7 Resource fype 'mctb • 301 Chapter 7 Editing with Style 303 Color Fonts 304 Text Styles and Tennlnology 307 Structure of Styled Text 308 Vertical Spacing 311 Manipulating Text Styles 313 Editing Styled Text 322 The Style Scrap 323 The Null Style 324 Scrapless Styling 325

Reading notes: OCR spacing and character damage in several section headings (e.g., 'AuxillaryWindow', 'ProperUes', 'Tennlnology', 'fype') Table of contents structure lacks clear reading order for chapter entries

Languages
English