# Mac Programming FAQs 1996 — source transcripts, page 1

[Canonical transcript page](https://www.vintageapple.net/transcripts/media/va-mac-programming-faqs-1996-8578a7/1)

## Transcribed source material

Machine transcriptions and image descriptions; uncertain copy may be marked [illegible]. Verify against the linked originals. Historical rights remain with the original owners.

These are transcribed excerpts, not the full publications. Open the originals for remaining pages.

### Image 1

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-mac-programming-faqs-1996-8578a7/1#scan-6e7ae6d9750273871b478b0765a3f942bdc6f7e5495fa0582f487ab22fa4c50b)

Mac Programming FAQs

Transcribed text:

MacWorld

Mac PROGRAMMING FAQs

Answers to the Most Frequently Asked Questions

INSIDE!
650 Answers from the Experts!

Bonus CD Features Easy-to-Access Code and Answers!

Answers include reusable code fragments on CD—solve your problem without retyping

Includes a searchable database of all the frequently asked questions—instant access to answers

Contains 70 exclusive applications with their projects and source code—study the programs and reuse the code

Why do I get error -903 when I try to send an Apple event with AESend? How do I get and set the current highlight color? How can I draw with a color at a specific location in my palette? Why is my window not immediately affected when I change my palette? How do I change the shape of the cursor? How do I get my program to move the cursor to a specific location on the screen? How can I spin the cursor using an interrupt routine? How do I send and receive data over the serial port? Why can't I click on a button after I move it with MoveControl? How do I put scroll bars in my window? How can I get an edit text item in a dialog to only accept numbers as input? How can I detect multiple simultaneous keystrokes on a single keyboard? How do I capture keystrokes in all applications? How do I create and install a GNE filter? How can I get and set the default volume and folder? How do I access the top directory of a volume? How can I recurse through all files and folders in a directory? How can I find all mounted volumes? How do I read data from and write to a file? How can I tell if there is a diskette in my diskette drive?

Find Mac programming answers fast and learn coding from the experts

• The only Mac programming answer book—saves you time by putting all the answers into one handy place

• Covers all frequently used Mac Toolbox Managers

• Answers your common Mac programming questions

Stephen H. Baker with Dave Mark

IDG BOOKS WORLDWIDE

Image description: A magenta and navy book cover with a large vertical yellow MacWorld logo on the left, a big white and yellow 'Mac PROGRAMMING FAQs' title, a black starburst badge reading 'INSIDE! 650 Answers from the Experts!', a bonus CD image at top right, and a dense column of question text on the right.

Reading notes: The MacWorld vertical logo is stylized and read as 'MacWorld' with a registered mark; the reading order of the right-hand column and the top callouts is inferred from layout. The 'Mac' and 'FAQs' title words are stylized display type and may be read approximately. Left-edge text ('Find Mac programming...') is partially cropped at the edge of the scan.

Printed product names: MacWorld · Mac Programming FAQs

Languages: English

[Original Image 1](https://www.vintageapple.net/files/8d2c441111325b3c3673193167d911a9df52707448e84d87d5a54c3cbf42ba57/eaa61eb14409f47e268783e2.webp)

### PDF page 1

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-mac-programming-faqs-1996-8578a7/1#scan-b6183394a0f7b570e3b0a0ad0bba105abcb81e65378a7fbf6786211e5edc0153)

Transcribed text:

MacWorld

INSIDE! 650 Answers from the Experts!

Bonus CD Features Easy-to-Access Code and Answers!

Answers include reusable code fragments on CD—solve your problem without retyping

Includes a searchable database of all the frequently asked questions—instant access to answers

Contains 70 exclusive applications with their projects and source code—study the programs and reuse the code

Why do I get error -903 when I try to send an Apple event with AESend? How do I get and set the current highlight color? How can I draw with a color at a specific location in my palette? Why is my window not immediately affected when I change my palette? How do I change the shape of the cursor? How do I get my program to move the cursor to a specific location on the screen? How can I spin the cursor using an interrupt routine? How do I send and receive data over the serial port? Why can't I click on a button after I move it with MoveControl? How do I put scroll bars in my window? How can I get an edit text item in a dialog to only accept numbers as input? How can I detect multiple simultaneous keystrokes on a single keyboard? How do I capture keystrokes in all applications? How do I create and install a GNE filter? How can I get and set the default volume and folder? How do I access the top directory of a volume? How can I recurse through all files and folders in a directory? How can I find all mounted volumes? How do I read data from and write to a file? How can I tell if there is a diskette in my diskette drive?

Find Mac programming answers fast and learn coding from the experts

The only Mac programming answer book—saves you time by putting all the answers into one handy place

Covers all frequently used Mac Toolbox Managers

Answers your common Mac programming questions

Stephen H. Baker with Dave Mark

Mac Programming FAQs™

Answers to the Most Frequently Asked Questions

IDG BOOKS WORLDWIDE

Image description: A magenta and navy book cover with a large yellow vertical MacWorld logo on the left, a big white Mac wordmark, a yellow FAQs panel, a starburst badge, and a CD graphic at the top right.

Reading notes: The vertical MacWorld spine text and the left-column bullet text are partly cut off at the edge of the scan; the 'Find Mac programming' lines are clipped at the left margin. Text is printed in reverse or on colored backgrounds and some small serif text may be slightly soft. The reading order of the right-column question block is inferred from top to bottom.

Languages: English

[Original PDF page 1](https://www.vintageapple.net/files/465ac564d3270c9a99bc3282b644f2d35fc93711a7869682b9779bb6b0a1d6d9/Mac_Programming_FAQs_1996.pdf#page=1)

### PDF page 2

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-mac-programming-faqs-1996-8578a7/1#scan-478f9e1119a5e2e5137609c153fd383a7328aeedae189c530b5b705dc4fb4db8)

Mac® Programming FAQs

Transcribed text:

Macworld®
Mac® Programming
FAQs ·
by   Stephen   H. Baker
with Dave Mark
= ---
IDG
BOOKS WORLDWIDE
IDG Books Worldwide, Inc.
An   International Data Group Company
Foster City,   CA+   Chicago,   IL+   Indianapolis,   IN+   Braintree,   MA+   Southlake, TX

Reading notes: The headline is inferred from the supplied title lines and may combine Macworld® with Mac® Programming FAQs. The '= ---' mark in the supplied copy is an unclear decorative or separator symbol. Reading order of the title, author, and publisher lines is uncertain. No prices or printed dates appear in the supplied copy.

Printed product names: Macworld® · Mac® Programming FAQs

Languages: English

[Original PDF page 2](https://www.vintageapple.net/files/465ac564d3270c9a99bc3282b644f2d35fc93711a7869682b9779bb6b0a1d6d9/Mac_Programming_FAQs_1996.pdf#page=2)

### PDF page 3

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-mac-programming-faqs-1996-8578a7/1#scan-9a24dc9fc901e205a053ea6a162abf3f83eeccd16ec66a6ecc5a5c48f052277b)

Transcribed text:

Macworld~   Mae   Programming   FAQs
Published   by
IDG   Books   Worldwide, Inc.
An International Data Group Company
919 E. Hillsdale Blvd.
Suite400
Foster City, CA   94404
Text, art, and software compilations copyright©   1996   by   IDG   Books Worldwide.   All   rights reserved. No part of
this   book,   including interior design, cover design, and icons, may be reproduced or transmitted in any form, by
any means (electronic, photocopying, recording, or otherwise) without the prior written permission of the
publisher.
Llbrary of Congress Catalog Card No.:   96-76260
ISBN:   0-76454001-7
Printed   in   the   United   States   of America
1098765432
lNQT/QV (lW /FC
Distributed in the   United   States   by   IDG   Books Worldwide, Inc.
Distributed by Macmillan Canada for Canada; by Computer and Technical Books for the   Caribbean   Basin; by
Contemporanea   de Ediciones for Venezuela; by Distribuidora   Cuspide   for Argentina; by CITFC for Brazil; by
Ediciones ZETA   S.C.R   Ltda for   Peru;   by Editorial Llmusa   SA   for Mexico; by Transworld Publishers Llmited in
the   United   Kingdom and Europe; by Al-Maiman Publishers &   Distributors for Saudi Arabia; by   Simron   Pty. Ltd.
for South   Africa;   by   IDG   Communications   (DK) Ltd. for Hong Kong; by Toppan   Company   Ltd. for Japan; by
Addison-Wesley Publishing   Company   for Korea; by Longman Singapore Publisher Ltd. for Singapore, Malaysia,
Thailand, and Indonesia; by   Unalis   Corporation   for Taiwan; by   WS   Computer   Publishing   Company,   Inc. for the
Philippines; by WoodsLane Pty. Ltd. for Australia; by WoodsLane Enterprises Ltd. for New Zealand.
For general information on IDG Books Worldwide's books in the   U.S.,   please call our   Consumer   Customer
Service department at   800-762-297 4. For reseller information, including discounts and premium sales, please
call our Reseller   Customer   Service department at   800434-3422.
For information on where to purchase   IDG   Books Worldwide's books outside the   U.S.,   contact IDG Books
Worldwide at   415-655-3021   or fax 415-655-3295.
For information on translations, contact Marc Jeffrey Mikulich, Director, Foreign   &   Subsidiary Rights, at   IDG
Books Worldwide,   415-655-3018   or fax 415-655-3295.
For sales inquiries and special prices for bulk quantities, write to the address above or call IDG Books   World-
wide at   415-655-3200.
For information on using IDG Books Worldwide's books in the classroom, or for ordering examination copies,
contact the Education Office at   800434-2086   or fax 817-251-8174.
For authorization to photocopy items for corporate, personal, or educational use, please contact Copyright
Clearance   Center,   222 Rosewood Drive, Danvers, MA   01923,   or fax   508-7504470.
Umlt   of   UabllltyjDlsclalmer   of   Warranty: Author and Publisher have used their best efforts in preparing this
book.   IDG   Books Worldwide, Inc., and Author make no representation or warranties with respect to the
accuracy or completeness of the contents of this book and specifically disclaim any implied warranties of
merchantability or fitness for any particular purpose and shall in no event be liable for any loss of profit or any
other commercial damage, including but not limited to special, incidental, consequential, or other damages.
Trademarks:   The material   in   Appendix B   is used with permission from Apple   Computer.   All brand names and
product names used in this book are trademarks, registered trademarks, or trade names of their respective
holders.   IDG   Books Worldwide is not associated with any product or vendor mentioned in   this   book.
~
::::;;;;;
IDG BOOKS \\'OlllJWlDf
is a trademark under exclusive license
to   IDG   Books Worldwide, Inc., from
International Data Group, Inc.
The text   in   this book is
printed on recycled
paper.

Reading notes: Garbled characters in the publisher and distribution text (e.g., 'Llbrary', 'Umlt of UabllltyjDlsclalmer') may affect reading accuracy Reading order of the scrambled logo text near the ISBN and the distribution list is uncertain

Printed product names: Macworld

Printed dates: 1996 · 1098765432

Languages: English

[Original PDF page 3](https://www.vintageapple.net/files/465ac564d3270c9a99bc3282b644f2d35fc93711a7869682b9779bb6b0a1d6d9/Mac_Programming_FAQs_1996.pdf#page=3)

### PDF page 4

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-mac-programming-faqs-1996-8578a7/1#scan-cd6580833ae1b070eb07e8b9a1fc96093b3406db11920c40cf981ef156152a3f)

Transcribed text:

About the Authors
Stephen   H. Baker graduated from Rice   University   with a   B.S.   in Electrical
Engineering and Computer Science.   Since   then he has been involved in extensive
Macintosh and Windows development, both as a developer and as a manager.   Steve
is currently the Di   rector of Release Management at   Vis   ix Software, Inc., a company
that develops and supports client/server application software.
Dave Mark has written a number of best-selling Macintosh programming books,
including   Learn   Con   the   Macintosh, Learn   C++   on the   Macintosh,   the   Macintosh
Programming   Primer   series, and   Ultimate   Mac   Programming.   He has also collabo-
rated on a number of Internet-related books, including   Home Sweet Home Page,
Learn HTML on the Macintosh,   and   Learn Java on the Macintosh.   More recently,
Dave has collaborated with Metrowerks, Inc., to create a series of CD-ROM-based
products. Dave is also a partner in   ZumaC@fe,   the first cyber-cafe in New Mexico.

Languages: English

[Original PDF page 4](https://www.vintageapple.net/files/465ac564d3270c9a99bc3282b644f2d35fc93711a7869682b9779bb6b0a1d6d9/Mac_Programming_FAQs_1996.pdf#page=4)

### PDF page 5

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-mac-programming-faqs-1996-8578a7/1#scan-3503e5a0d8e9087346d842cead7b7f5aa3bfb182c666cf12f983f7c6027695c7)

Welcome to the world of IDG Books Worldwide.

Transcribed text:

Welcome   to the world of IDG Books   Worldwide.
IDG Books   Worldwide.   Inc   .. is a subsidiary of International Data Group. the world's largest publisher of
computer-related information and   the   leading global provider of information services on information
technology. IDG was founded more than 25 years ago and now employs more   t~an   7,700   people worldwide.
JOG publishes more than   250   computer publications in 67 countries (see listing below). More than   70
million people read one or more !DG publications each month.
Launched in   1990,   IDG Books   Worldwide   is today the #l publisher of best-selling computer books in   the
United   States.   We   are proud to have received 8 awards from the Computer   Press   Association in recognition
of editorial excellence and three from Computer Currents' First Annual Readers' Choice Awards, and our
best-selling   ... For   Dummies®   series has more than 19 million copies in print with translations in 28 languages.
IDG Books   Worldwide,   through a joint venture with IDG's Hi-Tech Beijing, became the fi rst   U.S.   publisher
to publish a computer book in the   People's   Republic of China. In record time, IDG Books   Worldwide   has
become the first choice for millions of readers around the world who want to learn how to better manage
their businesses.
Our   mission is simple: Every one of our books is designed to bring extra value and skill-building instructions
to the reader.   Our   books are written by experts who understand and care about our readers. The knowledge
base of our editorial   staff   comes from years of experience in publishing, education, and journalism -
experience which we use to produce books for the   '90s.   In short, we care about books, so we attract the
best people.   We   devote special attention   to   details such as audience, interior design, use of icons, and
illustrations. And because we use an   efficient   process of authoring, editing, and desktop publishing our
books electronically, we can spend more time ensuring superior content and spend less time on the
technicalities of making books.
You   can count on our commitment to deliver high-quality books at competitive prices on topics you want
to read about. At JOG Books   Worldwide,   we continue in the JOG tradition of delivering quality for more
than 25 years.   You'll   find no better book on a subject than one from IDG Books   Worldwide.
john Kilcullen
President   and   CEO
IDG Books   Worldwide,   Inc.
IDG   Books Worldwidt, Inc..   1 s   3   subsidiary of   lmcrnauonal   Dat;a   Grouy.   the   world's   1ar~cs1   publisher   of   computer-related   mform:uion   :md   the   \c.idms   glob.11
~~~~e~~~ 1  ~~~:~':~rtstt~' , 1 ~~ .. ~~~~ 0 0::  1
~~~~h~~~~~l!~s";:~h"~o~~;~a   ~~~~al~~~.:f';: , ~G~o~~sc~::b~~:1~~bit~cl~d~   ~nR~E c ~~~~~;   c~~~1~1t1~l·~
1
~
1
1 'id
Argcnuna,   GamcPro,   lnfoworld, PC   World   Argtnuru.   AUS'rRAUA:   Austrah:m   ~bcworld,   dtcnt/Scn·cr   Journal, Computer   LJ\'mg.   Computcrworld,   D1g11JI   Nc"'S,
N<1work   \\\>rid,   PC   1\\>rld.   Publishing   Ess<mial;,   R<soll<r.   AUSTRIA:   Compul<N<h.   PC   I   ESl',   BEURUS:   PC   World   S.larus;   BELGIUM:   DJ<•   Ne"~·   BRAZIL:
AnnuJno   de   lnformiuca,   Compu1crworld   Br:i.::11.   Conncclions,   Super   G:1mc   PowC"r.   M:1cworld ,   PC   World   Bra::1l,   Pubhsh   Bra:1l.   SUPERGA\tE:   BULGARI A:
Computcrworld   Bulg._ aru.   NC't"orkworlcVBulgarb.,   PC   6:   M3CWortd   Bulgana,   CANA DA:   CIO   Cuud.l.   Computcc\\brld   C:lnadi.   lnfoCnuda.   Ntl\l.Ork   World
~~   ~·~·~~~idc~:Ri~~~~~~·~i~~~~ ·o ~L '6~lt 'i:'e
1
~u~~1~ ~~ 1
~~P C:.~~~ki"'~:.~:~~:   g:;:~k. ~~'h~~;.:i.~.b~
World   C:tchoskn-alwi;   DENMARK:   Commumauons   \\brld,   Computcrv.orkl   0Jnmuk.   Mxwotkl   tnnnurk.,   re   \\brld   D.ummk,   PC   \\brld   0Jnnu1k   Sup?kmcntS.
TECH   World ,   DOM l l'> ICAN   REPUBLIC:   PC   World   R<publica   Domir.ic•na.   ECUADOR:   PC   11\nld   EA;uador,   G.m<Pro;   EGYPT:   Compu1tNorld   Middle   E>sl,
PC   \\btid   Middle   East,   EL   SALVADOR:   PC   World   Centro   Amcna;   rlNLAND:   M1kroPC,   T1t1ove1kko,   Tict0\'11kko,   f R.Ai...;CE:   Dtsmbuuque,   C.olden,   Info   re.
Lt   Guide   du   Mondc   lnformattquc,   le   Monde   tnromuuquc,   Rcscaux   N   Telecoms,   GE RMANY :   Compu1er   Busmcss,   Compumv.-oc:hc.   Computerwoche   Utra,
Computcrwochc Focus,   Elcctromc   EntC'rt:11nmcnt.   GamcPrc.   l/M   lnforrmuon   M;ma~C'mC'nt,   MacwC'll,   PC \\'eh: GREECE:   G:imcPro.   ~bcv.·orld   6r   Publ15h;
~~~~:~~A'il~';~~~~~~~~~~~~~~r;t~~~h~~~~~~~~l~~~~ ..   ~~
1
1 ~~,~~;~~J~~~~~~~dc~:d~~~~~f,c~\~~~
Ind~.   Publish   m   Asta;   INOONESlA:   lnfoKomputer   PC   World.   Komputck   Computcrworld.   l'ubhsh   m   Asia,   IREL\KD:   ComputcrScopc. PC   1.J,·e',   ISRAEL:   PC
World   32 BIT.   People   &   Compu1ers:   ITALY:   Computcrworid   Italia,   Compmuworld   ltaha   Spffi:tl   Edmons.   lotus   Italia,   Macworld   1tah:1,   NC't\l.orkm~   lt:ll~.   re
Shopping,   PC   World   lta!.ia,   PC   Worldl'Wah   01snt)·: JAPAN:   ~fa.c"orldjap;m,   N1kkci   Pcrso1ul   Compu1ing.   SunWotld   Japan,   Windows   World   J.a pJn,   KENYA:
El.st   Afncan   Compu1C':r   News,   KOREA:   Hi-Tech   lnformauonl'Computcrworld.   M3C"''Orld   Ko1ta,   PC   World   l<orC':3,   MACEDONIA:   PC   \\\>rid   M.tetdom:a,   MALAYSIA:
Computcrworld   Malaysia,   PC   World   M:tl.1)'s1a,   Pubhsh   in   Asa;   MEXICO:   Computcrworld   Mexico.   GamePro,   MlC\\·orld.   PC   World   Mexico;   MYAN MAR:   PC
~~~dz~Jbnd.'~1~~:~: ,~~~~ ~rfd."~Ct~~~~if°~~~u~!;~~d~ 1
N t;' ~ ,~~~U~: ·   ~l~~r~~i   ~~s~Jfe2~~i~,~~1~~~~~~~ t'~tu,~~ ~J>'~(r~~~ri ~~~~~
Computcrworld Norge, Computcrworld   Pm-at,   CW   R.3.ppon   Kl1em.ITJcn('r,   CW   IUppon   Ncm'Crk   &Telecom,   av   Rappon   OfTcnthg   Scktor,   IOG's   KUR.':>GUIDL:.
M:acworld   N o~c,   Mul1imed1a   World ,   PC   World   Eks1>ress,   PC   World   Ncuvcrk.   PC   World   Norge,   PC   World's   Produkt\utdc-,   Wmdows   Spcsml:   r AK ISTA N:
gr~~~ ~fo:'\?~!1/~;;~,r;( ~vc;,~1'::t~~~:~~·. :~ .~~:C~~~:~ ~~~.~~fd~'~f:~;:·~~:C:~:!J~~~~~~c~;~~~ 1
~ ra,~grlj~~in;~:C,; ~ , ~~~ ,;~~; ,~~~\l~ 1
~~~ ~~~
World ,   Tdecom   Product   World;   PERU:   Comput('rworld   Pc:ru,   GamcPro,   PC   World   Pro(cs1onJI   Peru,   PC   World   Peru: POLAND:   CompulC":rworld   Pol:md.
Computcrworld   Special   Rrpon.   ~ tacwo rld ,   Net\'orld,   PC   World   Kompulcr:   PMI Llr PI NES:   Cornputcrworld   Phll1ppinc~.   PC   D1ges1.   Publish   ln   Asia:   PORTUGAL;
C.CrcbroJPC   World.   Correla   lnformJ1ko/Compu1erworld,   M;.tc•lrv'PC• ln   Ponug.11:   PUERTO   RICO:   PC World   Puerto   Rico;   ROMANIA:   Compu1t'rnnild_ Rorn.:11u.1
PC   \Vorld   Ronuma,   Tdctom   Rom~m1.a:   RUSSIA:   ComputC"rworld   Ros51)'a,   Network   World   Rus.s1J,   re   World   Russtl;   SINGAPORE:   Computerworld   Slng.lporc.
PC World   Sing;ipo"'.   Publish   m   As13.   SLOVENIA:   MONITOR.   SOUTH   AFRICA:   Compuun~   SA .   N<1~·01k   \\'oild   S.A.   Sof1w:m:   World,   SrAIN:   Compu1<rworld
Esp.:ifla,   COMUN ICACIONES   WORLD.   [)(;r.lcr   World,   Mt1cworld   EsJ»fa.   PC   World   Esp.uU,   SWEDEt':   c.AP&Design.   Computer   Swctkn,   Corr, r~lc   Cornpu1mg
~!xWorld.   M3.X1   Cbt3.   M1kro01tom,   Nlt\'C"rk   61   Kommunik."lnon,   PC/Akm·.   PC   World   Windows   World.   SWITZERU\NO:   ComputC"tw..Jrld   Sc:hw('1,:,   M3C\l.01ld
Schwe1.:,   PCup;   TAIWAN:   Compu1C'f'\\'orld   Ta1v1r:m.   Macv.orld   T"lwan,   PC   World   T;uwan,   Pubhsh   T:uwan,   Wmd~-s   World;   TilAILANO:   11u1   Computcrworld,
Publish   m   Asta,   TURK.EV:   Computc.rworld MomtOr,   MACWORLD   Turlc;i)'C',   PC   WORLD   Tu1k1yc.   UKRAINE:   Computc:rworld   Kie,·.   Compu1cn.   &   Sohw;u('
~~~~n~~~~~~:·~Y:;.~~   ~~a~~~ ·~~~r~cl6~~ 1
~ 0~~
1
:i~~.":>~~,~~d 1
~~~1~ s'.~t11~!.~   \~ .~;~~~~V~~'0~~;E~5;P~~~f ;
Cable:   m the   Classroom.   CD   Rtvtcw,   CIO   Ma,,zme.   CompUICf'\\·orld,   Computcrworld   Chen:JScn·cr   Journal,   Dtgnal   Video   Maga:me,   DOS   World,   l1C"ctron1c,
lnfoll'orld.   l·ll~y.   Macworld.   M ax1m1Zc.   MULTIMEDIA   WORID,   Nc1work   World ,   l'C   World ,   PUBLISH.   Sll'ATl'ro   Maga:in<.   Vidro   E\Tnl.   Wtb~!:151t r;   URUGUAY:
PC   World   Uruguay:   VENEZUELA:   Computcrworld   Vt:ne:utb,   G2mePto.   PC   World   Vcnczuc:b.   3nd   VIETNAM:   PC   World   Victn~m   IOll   7/Q5a

Reading notes: Garbled OCR in the lower publication list and marginal text around 'IDG Books Worldwide, Inc.' and the country listings Reading order is uncertain where the country publication list is interleaved with body text

Printed product names: For Dummies®

Printed dates: 1990 · '90s · 25 years · 7,700 · 250 · 67 · 70 million · 19 million · 28 languages · 8 awards · three

Languages: English

[Original PDF page 5](https://www.vintageapple.net/files/465ac564d3270c9a99bc3282b644f2d35fc93711a7869682b9779bb6b0a1d6d9/Mac_Programming_FAQs_1996.pdf#page=5)

### PDF page 6

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-mac-programming-faqs-1996-8578a7/1#scan-2641497d2ae0e2f21c0717ce5fdf34be0d9fcfa52b2bc618254cea6466ec6aff)

Transcribed text:

To Kelley, Michael, Matthew, and Jennifer. Thanks for your love, support, and
patience. -   SHB
To Deneen, Daniel, and our newest, Kelley Rowan -   LFUEMISFAAZOK?   -   DM

Reading notes: Final line 'LFUEMISFAAZOK?' is unclear and may be an abbreviation or damaged text. Initials 'SHB' and 'DM' are ambiguous without context.

Languages: English

[Original PDF page 6](https://www.vintageapple.net/files/465ac564d3270c9a99bc3282b644f2d35fc93711a7869682b9779bb6b0a1d6d9/Mac_Programming_FAQs_1996.pdf#page=6)

### PDF page 7

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-mac-programming-faqs-1996-8578a7/1#scan-1c7000d57f7b6ddfb332e842e0546189522bcf37b556c8126814d195ab8a056a)

Transcribed text:

Credits
Senior   Vice   President   and
Group   Publisher
Brenda McLaughlin
Acquisitions Editor
Nancy E. Dunn
Brand Manager
Melisa Duffy
Managing Editor
Terry Somerson
Editorial Assistants
Dan Hilldale
Jean Leitner
Production Director
Andrew Walker
Supervisor of Page Layout
Craig A. Harrison
Associate Pre-Press Coordinator
Tony Augsburger
Media/Archive Coordinator
Leslie Popplewell
Development Editor
Kenyon Brown
Copy Editors
Kathryn Duggan
Katharine Dvorak
Earl Jackson, Jr.
Michael Welch
Technical Reviewer
Peter Ferrante
Project Coordinator
Ben Schroeter
Production   Staff
Vince Burns
Renee   Dunn
Mary Ellen Moran
Stephen   Noetzel
Chris Pimentel
Elsie   Yim
Proofreaders
Mick Arellano
Christine Langin
Indexer
Matthew   Spence
Cover Design
Lieu Design

Reading notes: Source text is a credits page with no primary heading or advertised products, prices, or dates.

Languages: English

[Original PDF page 7](https://www.vintageapple.net/files/465ac564d3270c9a99bc3282b644f2d35fc93711a7869682b9779bb6b0a1d6d9/Mac_Programming_FAQs_1996.pdf#page=7)

### PDF page 8

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-mac-programming-faqs-1996-8578a7/1#scan-40c338209d6e64fae083c7b6b0abe0760337c9ecc85a3d4bae02e0626bb11f62)

Transcribed text:

Foreword
I bought my first Mac during the   "first   hundred   days"   back in March of '84. After
about a week of fooling around, I set my sights on learning to program the dam
thing. That's when this book really began.
I started with the looseleaf   version of   Inside Macintosh   Apple sent me. It was about
150 pages filled with   Pascal   and Assembler and cryptic references to these myste-
rious Toolbox Managers.   Inside Macintosh   filled me with questions. I was starving
for answers.
Fortunately, I had a bunch of friends who were also taken with this new computer.
My life was filled with puzzled phone calls, brain deadening all nighters, and pizza
at dawn. As the Mac Toolbox became more complex, the questions multiplied.
Thank God for e-mail and my buddy   Steve!
Steve   Baker was by my side through this whole Mac programming odyssey. Asaver
by nature,   Steve   was always haunting the nets, taking notes. We'd find a cool piece
of   sample code, I'd forget where we saw it,   Steve   would have it neatly organized on
his hard drive.   Steve   kept everything. And now there's this book.
Mac Programming FAQs   is filled with more than 650 Macintosh programming
questions. We tried to come up with a nice mix of   questions so there'd be something
here for everyone. There are answers and there is a boatload of   code, too. And there's
a CD in the back that has a searchable database of all the questions, answers, and
code found in the book.
I hope you enjoy this book as much as   Steve   and I enjoyed bringing it to you.
Dave Mark
March 1996

Reading notes: Primary heading 'Foreword' is not a true headline; the text has no separate printed title or masthead. Irregular word spacing in the extracted copy may reflect layout rather than actual spelling.

Printed product names: Mac · Inside Macintosh · Mac Programming FAQs

Printed dates: March of '84 · March 1996

Languages: English

[Original PDF page 8](https://www.vintageapple.net/files/465ac564d3270c9a99bc3282b644f2d35fc93711a7869682b9779bb6b0a1d6d9/Mac_Programming_FAQs_1996.pdf#page=8)

### PDF page 9

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-mac-programming-faqs-1996-8578a7/1#scan-fde8730e0fc8059f7f1bc5eafffef7d07a725f4edc84b337aa3c6daea3da8858)

Transcribed text:

Preface
When I first started programming the Mac, about eight years ago, I had a lot of
questions. What is an event? How do I update a window? What is a resource? Basic
information necessary to make my Mac do what I wanted it to do. After spending
countless days trying to unravel the   Inside Macintosh   volumes, I began making
some progress. However, the more I learned, the more I realized I   didn't know. I had
more questions now then when I began.   Only   now they were getting more complex
and much more difficult to find answers to.
Things became much clearer after I read Dave Mark's first book,   Macintosh
Programming Primer.   In time, I learned my way around the   Inside Macintosh
volumes.   As   Apple released new systems with new managers and more capabilities,
Dave and others wrote more books on programming the Mac. Apple also revamped
their   Inside Macintosh   series, turning it into a collection of over two dozen
volumes.
Online services such as America Online and various newsgroups on the Internet,
most notably comp.sys.mac.programmer, also provided a wealth of information.
Thousands of programmers used these forums to post questions they had about
Macintosh development. These were real life questions that most of us either had
encountered or would encounter in the course of our own development.
In the past year I've read thousands of   pages of   Mac programming material and gone
through approximately   50,000   online postings from all levels of Macintosh pro-
grammers.   Some   of these postings asked questions about programming the Mac;
others were responses to these questions; and the rest were opinions about a wide
range of   topics. After a while, I began seeing the same questions being posted again
and again. Most of these were problems that I had faced or techniques that I really
could have used. What a great source of information. Now, whenever I had a
question, all I had to do was peruse a few thousand messages and I would have my
answer.   Or   I could read the thousands of pages of the   Inside Macintosh   series to
piece together a solution. What I really needed was a book that dealt with these
frequently asked questions, or FAQs.
Mac Programming FAQs   is a collection of   650   of the questions that get repeatedly
asked by Mac programmers. While putting this book together Dave and I had a few
decisions to make. Do we go wild on the prose and spend pages on each question?
Do we concentrate on just   a few managers and cover them in detail while sacrificing
coverage on all of the other topics? Do we target one level of programmer? The
answer to each of these was no. The questions selected for this book cover the

Reading notes: Source text ends mid-sentence, so the final sentence is incomplete.

Printed product names: Inside Macintosh · Macintosh Programming Primer · Mac Programming FAQs

Languages: English

[Original PDF page 9](https://www.vintageapple.net/files/465ac564d3270c9a99bc3282b644f2d35fc93711a7869682b9779bb6b0a1d6d9/Mac_Programming_FAQs_1996.pdf#page=9)

### PDF page 10

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-mac-programming-faqs-1996-8578a7/1#scan-9a00f528bff5f66c3ea6af5aec12006e3bc2957a0cebb635fcbd1997cafaa126)

Transcribed text:

••
Xll   Macworld Mac Programming FAQs
majority of the Macintosh Toolbox and range from beginner issues to advanced
techniques. The answers are concise and to the point, allowing for a maximum
coverage of   topics. Complete and detailed code is provided in the projects on the CD
in the back of the book.
Mac Programming FAQs   was written to serve several functions. First and foremost,
it is meant to answer those nagging questions that routinely come up in Mac
programming projects. It is also meant to be a valuable guide to help you learn a
number of   advanced techniques. And finally, it is meant to be a source for new ideas
and approaches that you can incorporate into your projects. With the large volume
of questions, the wide range of   topics, and the abundant code samples, there will be
something in here for everyone.
How This Book is Organized
The FAQs presented in this book are organized into 33 chapters. Each chapter
represents a separate Toolbox Manager or development topic to facilitate the
locating of   an answer to a particular problem.   Some   of   the chapters, such as Chapter
11, Gestalt Manager, consist of only a handful of FAQs while others are made up of
as many as   40.   Those chapters that contain a large number of FAQs are further
divided into subsections.
The first part of this book provides a summary listing of all   650   FAQS,   ordered by
their appearance in the book. This listing will enable you to scan the material
included   to locate the questions you want. Next come 33 fun-filled chapters of FAQs.
These chapters are listed below.
Chapter 1: Apple Event Manager
Apple events is one of   the most complicated topics in Mac programming. This chap-
ter answers some basic questions to get you started incorporating Apple events into
your applications. It also tells you where you can get all the information you'll need
to really dig into this topic.
Chapter 2: Color
The Color chapter discusses how color is implemented on a Macintosh. It describes
how palettes and color tables are used and how they can be manipulated to produce
different effects. This chapter also covers how to draw in color. It is related to
Chapter 23, QuickDraw: Drawing.

Reading notes: Possible OCR ambiguity in the chapter heading list, which lists chapter topics that may not be exhaustive.

Printed product names: Macintosh Toolbox · Mac Programming FAQs · Gestalt Manager · QuickDraw: Drawing · Apple Event Manager · Color

Languages: English

[Original PDF page 10](https://www.vintageapple.net/files/465ac564d3270c9a99bc3282b644f2d35fc93711a7869682b9779bb6b0a1d6d9/Mac_Programming_FAQs_1996.pdf#page=10)

### PDF page 11

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-mac-programming-faqs-1996-8578a7/1#scan-e7cfa2dd08f767f37dde8327ac1a467a7b613ceb9914ccd090cad1b709074939)

Transcribed text:

•••
Preface   Xlll
Chapter   3:   Cursors
This chapter discusses the manipulation of cursors. It shows how to change the
shape of, hide, and move the cursor in an application. Several FAQs also deal with
the topic of rotating cursors.
Chapter   4: Development Environment and Language Issues
This chapter discusses Pascal and Assembly language issues that pertain to the
development of   Capplications.   It   also includes   some questions about the Metrowerks
CodeWarrior and Symantec C++ compilers.
Chapter 5: Devices:   Serial   Ports
The Devices: Serial   Ports   chapter covers some basic issues related to using the serial
port. It discusses how to configure the ports and how to use them to send and receive
data.
Chapter   6: Dialogs and Controls
The Dialogs and Controls chapter deals with a number of topics related to using
dialogs, dialog items, and controls in your application. It covers the implementa-
tion of the different types of dialogs and alerts. It shows how to put scroll bars in a
window, how to put the thick border around the default button, and how to perform
various manipulations on dialog items and controls. It also discusses the use of
event filters to perform specialized processing.
Chapter   7: Events
The core of a Macintosh application is the event handling routines. The Events
chapter discusses how your application should process events to behave properly.
How to detect when it gets sent to or returns from the background and how to detect
when a key is held down are just some examples. There are several questions that
show how to get the status of the keyboard, both from events and without events.
There are also several questions that deal with the mouse, such as determining the
state of the mouse button, detecting a double-click, and even moving the mouse
through code. For the more advanced programmers, the GNE filters are explained
with some examples.

Languages: English

[Original PDF page 11](https://www.vintageapple.net/files/465ac564d3270c9a99bc3282b644f2d35fc93711a7869682b9779bb6b0a1d6d9/Mac_Programming_FAQs_1996.pdf#page=11)

[Next transcribed scans](https://www.vintageapple.net/transcripts/media/va-mac-programming-faqs-1996-8578a7/2.md)
