Develop-16 9312 December 1993.Pdf
Total Page:16
File Type:pdf, Size:1020Kb
E D I T O R I A L S T A F F Editor-in-Cheek Caroline Rose Technical Buckstopper Dave Johnson Our Boss Greg Joswiak His Boss Dennis Matthews Review Board Pete (“Luke”) Alexander, C. K. Haun, Jim Reekes, Bryan K. (“Beaker”) Ressler, Larry Rosenstein, Andy Shebanow, Gregg Williams Managing Editor Cynthia Jasper Contributing Editors Lorraine Anderson, Philip Borenstein, Robin Cowan, Matt Deatherage, The cover. Mark Jenkins of Rucker Toni Haskell, Judy Helfand, Rebecca Pepper Huggins Design created this cover using Indexer Marc Savage Adobe Photoshop, Adobe Illustrator, Special thanks to Smart Friend Dean Yu for Fractal Design Painter, and a Macintosh his help during Dave Johnson’s sabbatical. Quadra 950. He looks forward to making the leap himself to Macintosh on PowerPC. A R T & P R O D U C T I O N This issue’s CD. The develop Bookmark Production/Art Director Diane Wilcox CD (or the Developer CD Series disc, Technical Illustration Dave Olmos, John Ryan Reference Library edition) for December Formatting Forbes Mill Press 1993 or later contains this issue and all Printing Wolfer Printing Company, Inc. back issues of develop along with the code Film Preparation Aptos Post, Inc. that the articles describe. The develop Production PrePress Assembly issues and code are also available on AppleLink and via anonymous ftp on Photography Sharon Beals ftp.apple.com. Note that some software Online Production Cassi Carpenter and documentation referred to as being on develop, The Apple Technical Journal, a this issue’s CD may be located on the Tool quarterly publication of Apple Computer’s Chest edition rather than the Reference Developer Press group, is published in Library edition of the Developer CD Series March, June, September, and December. disc. E D I T O R I A L Riding into the future with PowerPC. 2 L E T T E R S Differences of opinion on our new CD and its packaging, plus a dogcow query. 3 A R T I C L E S Making the Leap to PowerPC by Dave Radcliffe An overview of the PowerPC platform, and coding strategies for both compatibility and speed. 5 Building PowerTalk-Savvy Applications by Steve Falkenburg How to incorporate direct mailing and digital signatures into your application. 39 Drag and Drop From the Finder by Dave Evans and Greg Robbins Taking advantage of the new drag and drop services is easy, and your users will love it. 66 Color Matching Made Easy With QuickDraw GX by Daniel Lipton QuickDraw GX integrates ColorSync to make color matching nearly effortless. 81 International Number Formatting by Norbert Lindenberg Some good methods for handling the different number formats around the world. 97 C O L U M N S Somewhere in QuickTime: What’s New With Sound Manager 3.0 by Jim Reekes Changes (and bug fixes!) in the Sound Manager. Finally, you can remove all that workaround code. 34 The Veteran Neophyte: Abracadabra by Dave Johnson Hunting for the source of that old elusive magic, Dave stubs his toes on some obvious truths. 64 Print Hints: LaserWriter 8 for Fun and Profit by Matt Deatherage How applications can take advantage of the new LaserWriter driver. 76 Graphical Truffles: Remedies for Common QuickDraw Problems by John Wang Look here first for relief from common QuickDraw problems. 95 View From the Ledge by Tao Jones An office survival guide for the socially and politically inept. 122 KON & BAL’s Puzzle Page: Sounds Like Trouble by Konstantin Othmer and Bruce Leak A fresh-faced intern gives the hoary masters a run for their money. 134 Q & A Macintosh Q & A Apple’s Developer Support Center answers your product development questions — and as usual, we made up some funny ones. 124 I N D E X 138 1 © 1993 Apple Computer, Inc. All rights reserved. Apple, the Apple logo, APDA, AppleLink, AppleShare, AppleTalk, ImageWriter, LaserWriter, MacApp, Macintosh, MPW, MultiFinder, SANE, and StyleWriter are trademarks of Apple Computer, Inc., registered in the U.S. and other countries. AppleMail, ColorSync, develop, DigiSign, Finder, GrayShare, Macintosh Quadra, Newton, Performa, PowerBook, PowerShare, PowerTalk, QuickDraw, QuickTime, Sound Manager, System 7, and TrueType are trademarks of Apple Computer, Inc. MacDraw and MacWrite are registered trademarks of Claris Corporation. Adobe and PostScript are trademarks of Adobe Systems Incorporated, which may be registered in certain jurisdictions. All other trademarks are the property of their respective owners. CONTENTS December 1993 Dear Readers, Nearly two years ago I was asked to join a team of Apple developer support people who would meet monthly to discuss a forthcoming Macintosh model that would be based on the new PowerPC (RISC) processor. Our goal was to ensure that developers receive the support they need to get started on this new computer, due to be introduced in 1994. It seemed a bit premature to me back then, but the time went faster than anyone would have imagined. Now I’m happy to finally have something to show for it in develop: an article to help you make the transition to this new stage in the life of the Macintosh. We hope to tear the engineers away from their programming long enough to be able to have a steady stream of articles on this subject in future issues. CAROLINE ROSE The PowerPC processor–based Macintosh will be formally introduced roughly a decade after the introduction of the first Macintosh computer, which of course makes me wax nostalgic about what I was doing then at Apple: furiously finishing up Inside Macintosh on an Apple III, handing off chapters to Louella Pizzuti (later the founder of develop) to format them on the Macintosh in MacWrite®. But most of all, I remember looking forward to what I knew would be worldwide acceptance of — no, excitement about! — our new computer. The world is different now, as am I (we’ve both changed a lot in ten years), and I’m shorter on starry-eyed wonder and exclamation points than I was back then. But to quote an old TV personality (trivia question: who?): “I think you’re gonna like this one.” Talk about time flying by, this thing is fast. And it’s still a Macintosh (which I’ll always have a warm spot for in my heart no matter where I roam). It’s a horse of a different color, but it’s still a horse: a sleek, beautiful racehorse that should make us all winners. At least that’s what I’m betting. Caroline Rose Editor 2 CAROLINE ROSE (AppleLink CROSE) got into back after five years and become the editor of technical writing because of a Math degree she develop. After putting each issue of develop to didn’t know what to do with. It landed her a job bed, Caroline likes to take off to someplace at Tymshare, where she wrote her first manual in where she can forget about computers altogether. pencil on paper, from which someone typed it on After this issue, she’ll fulfill a dream she’s had an IBM Selectric typewriter. But enough ancient since the first time she looked at a globe as a history. Caroline’s career at Apple began with child: she’ll visit the Caroline islands. She’ll stay Inside Macintosh and almost ended when she left with friends who live on a sailboat in primitive to join NeXT, but she was smart enough to come style (except for their computers!).• d e v e l o p Issue 16 NEW CD & PACKAGING: GOOD After a few weeks had gone by, I phoned I just received develop Issue 14 in the ADPA to ask why I hadn’t received mail (a little late, but worth the wait!). anything. I was told that they had been As usual, the articles are enlightening swamped with orders as a result of the and entertaining. The Bookmark CD is MacWeek article. an excellent idea as well (although the Now I find out that there’s been a former student in me doesn’t like the “change” to develop’s CD. What bothers idea of missing out on system software). me is the apparent motivation behind all LETTERS I enjoyed opening up the journal to find this. You knew that you were swamped my CD in a case that could not be with orders, which were generated by a broken, even by the worst of mailmen! specific MacWeek article. What did this And, as always, the CD contains a great article say? Simply that readers should wealth of information. I would even go subscribe to develop to get the system so far as to say I’d pay more than the software. So what did you do? Take price of a yearly subscription with or away the software! Didn’t it occur to without the CD; it’s really worth it! So, anyone making this decision that loyal I’d like to congratulate you and customers might be angered? everyone else on the develop staff (as well as all the contributors) for creating an I, for one, am not a happy camper. amazing journal for me (and I guess —Ken Ribet other developers!) every three months. Keep up the good work, as I look Regarding the CD change: We basically forward to future issues. (I just renewed took only Inside Macintosh and system my subscription.) software off the CD. We have since restored Inside Macintosh; that decision was made a —David A. denBoer bit hastily. But I think the decision to discontinue essentially giving away the Thanks for the good words about develop system software was a sound one. We’re and especially about its CD.