develop-23 9509 September 1995
From the originals
24 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
ColorSync 2.0 • Source Control With SourceServer • About Scripting Dictionaries develop The Apple Technical Journal Issue 23 September 1995 Music the Easy Way: The QuickTime Music Architecture The Basics of QuickDraw 3D Geometries Implementing Shared Internet Preferences With Internet Config Multipane Dialogs Document Synchronization Power Macintosh: The Next Generation $10.00 DISCANTVS TENOR BASSVS
The cover shows a collage of handwritten sheet music with a musical staff labeled DISCANTVS, TENOR, and BASSVS, a blue-tinted piano-roll style graphic chart, and colorful stylized musical-note shapes in red, orange, yellow, green, teal, and purple along the lower half, with a purple band across the top and a text column of article titles on the left.
Reading notes: Small text on the piano-roll chart and handwritten sheet music fragments (e.g., words near the staff) is not legible and was not transcribed. Handwritten annotations in the lower music sheet area are illegible and omitted. Reading order of the cover lines is inferred from layout; the top banner items are separated by bullet dots.
- Printed product names
- develop
- Printed prices
- $10.00
- Printed dates
- September 1995 · 1995
- Languages
- English
PDF page 1 · PDF page 1
ColorSync 2.0 • Source Control With SourceServer • About Scripting Dictionaries develop The Apple Technical Journal Issue 23 September 1995 Music the Easy Way: The QuickTime Music Architecture The Basics of QuickDraw 3D Geometries Implementing Shared Internet Preferences With Internet Config Multipane Dialogs Document Synchronization Power Macintosh: The Next Generation $10.00 DISCANTVS TENOR BASSVS
Cover collage of handwritten sheet music on yellowed paper with a piano-roll style note grid overlay and colorful painted musical-note shapes in red, orange, yellow, green, teal, and purple across the lower half, with a white left column of orange and black headlines.
Reading notes: Handwritten annotations in the sheet music background (e.g., faint marginalia near the lower right) are not transcribed as they are illegible. Small text in the piano-roll grid (note labels and numeric scale markings) was not transcribed in full. Small faint marginalia such as 'Guitar Solo' and 'Bassoon' style notations in the lower sheet music are only partly legible and were omitted.
- Printed product names
- develop
- Printed prices
- $10.00
- Printed dates
- September 1995 · 1995
- Languages
- English
PDF page 2
E D I T O R I A L S T A F F Editor-in-Cheek Caroline Rose Managing Editor Toni Moccia Technical Buckstopper Dave Johnson Bookmark CD Leader Alex Dosher Able Assistant Meredith Best Our Boss Mark Bloomquist His Boss Dennis Matthews Review Board Jim Luther, Dave Radcliffe, Jim Reekes, Bryan K. “Beaker” Ressler, Larry Rosenstein, Andy Shebanow, Gregg Williams Contributing Editors Lorraine Anderson, Toni Haskell, Judy Helfand, Tim Monroe, Cheryl Potter, Joan Stigliani Indexer Marc Savage A R T & P R O D U C T I O N Production Manager Diane Wilcox Technical Illustration Mary Prusmack Ching, Deb Dennis, John Ryan, Laurie Wigham Formatting Forbes Mill Press Photography Sharon Beals, Maggie Fishell, Gretchen Linton Cover Illustration Graham Metcalfe of Metcalfe/Shuhert Design ISSN #1047-0735. © 1995 Apple Computer, Inc. All rights reserved. Apple, the Apple logo, APDA, AppleLink, ColorSync, HyperCard, LaserWriter, Mac, MacApp, Macintosh, MacTCP, MPW, Newton, Power Macintosh, QuickTime, SANE, and TrueType are trademarks of Apple Computer, Inc., registered in the U.S. and other countries. AOCE, AppleScript, A/ROSE, Balloon Help, develop, DocViewer, Dylan, Finder, MessagePad, NewtonMail, NewtonScript, OpenDoc, Power Mac, PowerTalk, and QuickDraw are trademarks of Apple Computer, Inc. Adobe, Acrobat, and PostScript are trademarks of Adobe Systems Incorporated or its subsidiaries and may be registered in certain jurisdictions. PowerPC is a trademark of International Business Machines Corporation, used under license therefrom. UNIX is a registered trademark of Novell, Inc. in the United States and other countries, licensed exclusively through the X/Open Company, Ltd. NuBus is a trademark of Texas Instruments. All other trademarks are the property of their respective owners. T H I N G S T O K N O W develop, The Apple Technical Journal, a quarterly publication of Apple Computer’s Developer Press group, is published in March, June, September, and December. develop articles and code have been reviewed for robustness by Apple engineers. This issue’s CD. Subscription issues of develop are accompanied by the develop Bookmark CD. This CD contains a subset of the materials on the monthly Developer CD Series , available from APDA. Included on the CD are this issue and all back issues of develop along with the code that the articles describe. (The code is updated periodically, so always use the most recent CD.) The CD also contains Technical Notes, sample code, and other documentation and tools (these contents are subject to change). Items referred to as being on “this issue’s CD” are located on either the Bookmark CD or the Reference Library or Tool Chest edition of the Developer CD Series . The develop issues and code are also available in the Developer Services areas on AppleLink and eWorld and at ftp.info.apple.com. (Selected articles are on the World Wide Web at http://www.apple.com, in the Developer Services area.) Macintosh Technical Notes. Where references to Macintosh Technical Notes in develop are followed by something like “(QT 4),” this indicates the category and number of the Note on this issue’s CD. (QT is the QuickTime category.) E-mail addresses. Most e-mail addresses mentioned in develop are AppleLink addresses; to convert one of these to an Internet address, append “@applelink.apple.com” to it. For example, DEVELOP on AppleLink becomes develop@applelink.apple.com on the Internet. Append “@eworld.com” to eWorld addresses, and append “@online.apple.com” to NewtonMail addresses. C O N T A C T I N G U S Feedback. Send editorial suggestions or comments to Caroline Rose at AppleLink CROSE, Internet crose@applelink.apple.com, or fax (408)974-6395. Send technical questions about develop to Dave Johnson at AppleLink JOHNSON.DK, Internet dkj@apple.com, CompuServe 75300,715, or fax (408)974-6395. Or write to Caroline or Dave at Apple Computer, Inc., 1 Infinite Loop, M/S 303-4DP, Cupertino, CA 95014. Article submissions. Ask for our Author’s Guidelines and a submission form at AppleLink DEVELOP, Internet develop@applelink.apple.com, or fax (408)974-6395. Or write to Caroline Rose at the above address. Subscriptions and back issues. You can subscribe to develop through APDA (see ordering information below) or use the subscription card in this issue. You can also order printed back issues from APDA. For all subscription changes or queries, contact APDA and be sure to include your name, address, and account number as it appears on your mailing label. The one-year U.S. subscription price is $30 (for 4 issues and 4 develop Bookmark CDs), or $50 U.S. in other countries. Back issues are $13 each. These prices include shipping and handling. For Canadian orders, the subscription price includes GST (R100236199). APDA. To order products from APDA or receive the Apple Developer Tools Catalog of all the products available from APDA, call 1-800-282-2732 in the U.S., 1-800-637-0029 in Canada, (716)871-6555 internationally, or (716)871-6511 for fax. Order electronically at AppleLink APDA, Internet apda@applelink.apple.com, CompuServe 76666,2405, or America Online APDAorder. Or write APDA, Apple Computer, Inc., P.O. Box 319, Buffalo, NY 14207-0319. Printed on recycled paper d e v e l o p
Reading notes: No image was supplied for verification; all fields are derived only from the supplied extracted copy. No single primary headline is clearly printed; the letter-spaced section headings were not treated as a headline. Advertised products are inferred from the copy's offerings (subscriptions, back issues, CDs, catalog) and may not match a true advertisement. The Canadian GST registration number and ISSN are not dates and were not listed as printed dates. Reading order follows the supplied copy order, which may differ from the physical layout.
- Printed product names
- develop · develop Bookmark CD · Developer CD Series · Apple Developer Tools Catalog
- Printed prices
- $30 · $50 U.S. · $13
- Printed dates
- 1995
- Languages
- English
PDF page 2
E D I T O R I A L S T A F F Editor-in-Cheek Caroline Rose Managing Editor Toni Moccia Technical Buckstopper Dave Johnson Bookmark CD Leader Alex Dosher Able Assistant Meredith Best Our Boss Mark Bloomquist His Boss Dennis Matthews Review Board Brian Bechtel, Dave Radcliffe, Jim Reekes, Bryan K. “Beaker” Ressler, Larry Rosenstein, Andy Shebanow, Nick Thompson, Gregg Williams Contributing Editors Lorraine Anderson, Patria Brown, Steve Chernicoff, Toni Haskell, Judy Helfand, Cheryl Potter, Joan Stigliani Indexer Marc Savage A R T & P R O D U C T I O N Production Lisa Ferdinandsen, Diane Wilcox Art Direction Paul Luiso Technical Illustration Mary Prusmack Ching, John Ryan, Laurie Wigham Formatting Forbes Mill Press Photography Sharon Beals Cover Illustration Graham Metcalfe of Metcalfe/Shuhert Design ISSN #1047-0735. © 1995 Apple Computer, Inc. All rights reserved. Apple, the Apple logo, APDA, AppleLink, AppleScript, AppleShare, AppleTalk, ColorSync, EtherTalk, HyperCard, HyperTalk, LaserWriter, LocalTalk, Mac, MacApp, Macintosh, MacTCP, MPW, MultiFinder, Newton, NewtonMail, OpenDoc, PowerBook, Power Macintosh, QuickTime, and TrueType are trademarks of Apple Computer, Inc., registered in the U.S. and other countries. A/ROSE, develop, Dylan, eWorld, Finder, NewtonScript, PowerTalk, QuickDraw, Sound Manager, and ToolServer are trademarks of Apple Computer, Inc. Adobe, Acrobat,and PostScript are trademarks of Adobe Systems Incorporated or its subsidiaries and may be registered in certain jurisdictions. PowerPC is a trademark of International Business Machines Corporation, used under license therefrom. UNIX is a registered trademark of Novell, Inc. in the United States and other countries, licensed exclusively through X/Open Company, Ltd. All other trademarks are the property of their respective owners. T H I N G S T O K N O W develop, The Apple Technical Journal, a quarterly publication of Apple Computer’s Developer Press group, is published in March, June, September, and December. develop articles and code have been reviewed for robustness by Apple engineers. This issue’s CD. Subscription issues of develop are accompanied by the develop Bookmark CD. This CD contains a subset of the materials on the monthly Developer CD Series , available from APDA. Included on the CD are this issue and all back issues of develop along with the code that the articles describe. (The code is updated periodically, so always use the most recent CD.) The CD also contains Technical Notes, sample code, and other documentation and tools (these contents are subject to change). Items referred to as being on “this issue’s CD” are located on either the Bookmark CD or the Reference Library or Tool Chest edition of the Developer CD Series . The develop issues and code are also available in the Developer Services areas on AppleLink and eWorld and at ftp.info.apple.com. Selected articles are on the World Wide Web at http://www.apple.com, in the Developer Services area. Macintosh Technical Notes. A designation like “(QT 4)” after a reference to a Macintosh Technical Note in develop indicates the category and number of the Note on this issue’s CD. (QT is the QuickTime category.) E-mail addresses. Most e-mail addresses mentioned in develop are either AppleLink or eWorld addresses. We’re currently in transition: a given AppleLink address may no longer work by the time this issue is published. If that happens, try the equivalent eWorld address. On the Internet, AppleLink address XXX translates to xxx@applelink.apple.com, eWorld addresss XXX to xxx@eworld.com, and NewtonMail address XXX to xxx@online.apple.com. C O N T A C T I N G U S Feedback. Send editorial suggestions or comments to Caroline Rose at AppleLink CROSE, Internet crose@applelink.apple.com, or fax (408)974-6395. Send technical questions about develop to Dave Johnson at AppleLink JOHNSON.DK, Internet dkj@apple.com, CompuServe 75300,715, or fax (408)974-6395. Or write to Caroline or Dave at Apple Computer, Inc., 1 Infinite Loop, Cupertino, CA 95014. Article submissions. Ask for our Author’s Guidelines and a submission form at AppleLink DEVELOP, Internet develop@applelink.apple.com, or fax (408)974-6395. Or write to Caroline Rose at the above address. Subscriptions and back issues. You can subscribe to develop through APDA (see ordering information below) or use the subscription card in this issue. You can also order printed back issues from APDA. For all subscription changes or queries, contact APDA and be sure to include your name, address, and account number as it appears on your mailing label. The one-year U.S. subscription price is $30 (for 4 issues and 4 develop Bookmark CDs), or U.S. $50 in other countries. Back issues are $13 each. These prices include shipping and handling. For Canadian orders, the subscription price includes GST (R100236199). APDA. To order products from APDA or receive the Apple Developer Tools Catalog of all the products available from APDA, call 1-800-282-2732 in the U.S., 1-800-637-0029 in Canada, (716)871-6555 internationally, or (716)871-6511 for fax. Order electronically at AppleLink APDA, Internet apda@applelink.apple.com, CompuServe 76666,2405, or America Online APDAorder. Or write APDA, Apple Computer, Inc., P.O. Box 319, Buffalo, NY 14207-0319. Printed on recycled paper d e v e l o p
Reading notes: Transcript is intentionally empty because the exact extracted text is preserved separately; the supplied copy was used only for the other fields. No distinct headline is visible, so headline is null; section headings are not treated as a headline. The copy is editorial and legal text rather than advertising, so productNames and prices are limited to items explicitly named in the supplied copy. Publication months (March, June, September, December) and the ISSN are not listed as printedDates, since they are not clearly dates.
- Printed product names
- develop · Bookmark CD · Developer CD Series · Apple Developer Tools Catalog
- Printed prices
- $30 · U.S. $50 · $13
- Printed dates
- 1995
- Languages
- English
PDF page 3
A R T I C L E S 6 Speeding Up whose Clause Resolution in Your Scriptable Application by Greg Anderson Although the Object Support Library will resolve complex AppleScript clauses for you, if you take on some of the work yourself the performance gains can be dramatic. 30 Getting Started With OpenDoc Storage by Vincent Lo OpenDoc storage is a departure from what you’re used to: it needs to support storing different kinds of data, written by different part editors, in the same file or container. 45 Sound Secrets by Kip Olson These less obvious features of the Sound Manager will help improve your application’s use of sound. 59 Guidelines for Effective Alerts by Paige K. Parsons This article elaborates and expands on the guidelines for the consistent and correct usage of alerts. 72 Printing Images Faster With Data Compression by David Gelphman PostScript Level 2 printers can accept JPEG-compressed image data directly, which can greatly improve printing speed. Here’s what you need to know to take advantage of this ability. 84 The New Device Drivers: Memory Matters by Martin Minow Using PrepareMemoryForIO to set up memory for data transfers to or from other devices is a complex — but very important — process. This walkthrough points out traps and pitfalls along the way. C O L U M N S 27 ACCORDING TO SCRIPT Steps to Scriptability by Cal Simone A clear, step-by-step method for developing your particular scripting implementation. 42 GRAPHICAL TRUFFLES Making the Most of QuickDraw 3D by Nick Thompson and Pablo Fernicola A few tips for QuickDraw 3D that might make your life a little easier. 56 BALANCE OF POWER Advanced Performance Profiling by Dave Evans Some new and useful performance profiling features of the PowerPC 604 processor. 69 MPW TIPS AND TRICKS ToolServer Caveats and Carping by Tim Maroney All about ToolServer, a small, scriptable application that can run MPW commands. 100 MACINTOSH Q & A Apple’s Developer Support Center answers queries about Macintosh product development. 110 THE VETERAN NEOPHYTE The Right Tool for the Job by Dave Johnson Dynamic languages are the future of programming. Or at least they ought to be. 112 NEWTON Q & A: ASK THE LLAMA Answers to Newton-related development queries. 117 KON & BAL’S PUZZLE PAGE Zoning Out by Konstantin Othmer and Bruce Leak The original Puzzlers return with another merry romp through the guts of the machine. Issue 24 December 1995 CONTENTS 1 2 EDITOR’S NOTE 3 LETTERS 123 INDEX
Reading notes: Headline is taken as the primary heading 'CONTENTS' from the table-of-contents page; the document lacks a distinct title. Reading order of article and column entries is listed by page number and may not reflect original layout.
- Printed product names
- Object Support Library · AppleScript · OpenDoc · Sound Manager · PostScript Level 2 · JPEG · PrepareMemoryForIO · QuickDraw 3D · PowerPC 604 · ToolServer · MPW · Newton
- Printed dates
- December 1995
- Languages
- English
PDF page 4
On this issue’s CD, all the files that used to be in Apple DocViewer format have been converted to Adobe™ Acrobat™. Based on feedback that we’ve gotten from many of you since we started using DocViewer, we trust you’ll be happy with this change. You should find that Acrobat has better search features and resolves some other problems. Because conversion is faster, the information can be more timely. Also, the files take up less space. So we hope you’re satisfied — but you probably won’t be for very long. It’s just not the nature of the computer-using beast. Think about it: How long after you get an upgrade to some software or hardware product do you start looking ahead to the next version? With the old problems solved and your old needs satisfied, you go on to realize a set of new ones. When it comes to computers, we always want more, and better. I remember when the Macintosh was first designed, Steve Jobs kept saying it was to be an appliance, like a toaster: you simply plug it in and it does what you want, reliably and without fuss. (We’re not talking multi-attachment Cuisinart here.) As you no doubt recall only too well, the options to add to the functionality of the first Macintosh were intentionally limited. It was to be a simple “black box” (“beige box”?). Now, I know you’re glad that that era didn’t last very long, but think for a moment about all those non-nerds out there who haven’t yet seen fit to buy a computer — all those potential customers Jobs was hoping to attract. They write things and add up numbers sometimes just like we do, don’t they? So what are they waiting for? I think the problem is that they want toasters — machines that work year after year without always needing to be updated, upgraded, or extended. They see the computer as a moving target, constantly advancing to satisfy some relatively insignificant new needs they never even knew they had — doomed to instant obsolescence. Better they should use a pen or pencil. I suffer from this attitude myself to some degree, at least when I’m wearing my Home User hat. There I use a little old Macintosh with old but reliable software that works every time I do the paperwork on it that I’ve been doing for ten years now. But at Apple, I become a Computer Professional monster with ravenous needs for the latest and greatest software and hardware — downright insatiable. So enjoy it while you can: have your fill of our new Acrobat files or whatever innovation pleases you these days. But rest assured that you’ll be hungry again in no time. CAROLINE ROSE d e v e l o p Issue 23 September 1995 2 EDITOR’S NOTE CAROLINE ROSE (AppleLink CROSE) resisted learning anything about computers in college, where she majored in math, but she couldn’t escape them in the real world. First she used gigantic IBM machines at her statistical research job in Manhattan. But California beckoned, and with it came terminals spewing yellow paper and, eventually, computers with display screens. This was a big “Wow!” at first, but now Caroline gets her excitement from non-computer endeavors, such as travel. On her trip this year to the Big Island of Hawaii, she kayaked among (breaching) humpback whales and watched lava flow down cliffs and into the Pacific. Hard to top that!• Caroline Rose Editor
Reading notes: Headline 'EDITOR’S NOTE' appears mid-text; primary heading uncertain
- Printed product names
- Apple DocViewer · Adobe™ Acrobat™ · Macintosh · Cuisinart
- Printed dates
- September 1995 · 1995 · ten years · this year
- Languages
- English
PDF page 4
THE WORLD WIDE WEB IS A VALUABLE RESOURCE, BUT IT IS NOT, AFTER ALL, THE WORLD
I was visiting my friends Helen and John one night when Helen started telling me how excited about the World Wide Web John had become. He said, “Ask me anything at all, and I can find the answer for you.” I asked what the new U.S. postal rate for international air mail was, knowing it had recently gone up from $.50. He delighted over finding a Web page for the Postal Service, and quickly found the rate: $.50. Wrong. Later John showed me a spiffy magazine called NewMedia , and in it an article by longtime hypertext proponent Ted Nelson. Nelson expressed his joy that, with HTML and the Web, hypertext’s time has finally come; we can now leave the insanity of “paper simulation” behind and write in a way that lets information take on its truer, interconnected form. I found the article, and John’s enthusiasm over the Web, a bit disconcerting. The Web is indeed a boon to humankind, but I don’t see it entirely replacing what came before. The world’s love affair with the Web reminds me of the early days of TV (so I’m told), when many people were sure that radio was dead. Out with the old, in with the new. But in fact the old still had its place in the world. The virtues of the Web don’t mean we no longer need to get information from flesh and blood people sometimes, or from books and other media that we can hold in our hands. This may seem obvious, but from the near hysteria surrounding the Web these days, I’m not sure it is. A few days after my visit with Helen and John, with John still smarting from his failed demonstration of the wonderfulness of the Web, Helen called and mentioned that she needed the lyrics to “House of the Rising Sun.” I could hear John in the background, tapping away as he searched for them online. I said I’d use old technology and call back with them soon. The race was on. After looking through my looseleaf binders full of song lyrics and a couple of big songbooks, I dug through my tapes and found an ancient recording of Woody Guthrie singing the song. After lots of rewinding and transcribing, I had more verses than Helen ever dreamed existed. When I triumphantly called back, John (several levels down in the Library of Congress) was mortified. While old technology will typically not beat Web browsers in the search for nuggets of information, it will not die, and it deserves proper respect. There are some things we’ll learn only through person-to-person contact. And there are emotions we’ll experience only from hearing or reading good old-fashioned sequential deliveries. The World Wide Web is a valuable resource, but it is not, after all, the world. CAROLINE ROSE d e v e l o p Issue 24 December 1995 2 EDITOR’S NOTE CAROLINE ROSE (AppleLink CROSE) enjoys editing develop so much that she fears she may forget to retire someday. She started out in technical writing and editing eons ago, eventually moving on to programming and even management before returning to her original calling. What seems to be calling her now is the sea: Her last vacation took her up to Puget Sound (stalking wild elk on the Olympic Peninsula on the way), and her next will be in a sailboat in the Bahamas. She may even have the opportunity to cruise the Pacific in a few years but she’s not sure she’ll be ready to leave develop, her cat, or terra firma.• Caroline Rose Editor
Reading notes: Headline is inferred from the article's closing line; the primary printed heading was not clearly marked in the supplied copy. Dates in the magazine header and issue line appear as 'Issue 24' and 'December 1995'; reading order of the masthead is uncertain.
- Printed product names
- NewMedia · HTML · House of the Rising Sun
- Printed prices
- $.50
- Printed dates
- December 1995 · Issue 24
- Languages
- English
PDF page 5
FLOATING WINDOWS AGAIN I’d like to use the library of functions for floating windows described in develop Issue 15 by Dean Yu (updated on Issue 21’s CD). I’m using CodeWarrior 5.5, and when I try to compile the sample project (or any other project that includes the WindowExtensions.h file) I get a “WindowRef redeclared” error. There seems to be a conflict with the universal headers. Before I try to get rid of this error myself (and probably make everything wrong), I thought I’d ask if you could suggest a simple and clean solution. — Fred Klein On this issue’s CD is a new version of the floating windows library that fixes this problem, and others. The problem was that Apple finally “caught up” with Dean and defined things in the universal headers that he had defined, in his forward-looking way, back when he first wrote the article. Also on the CD you’ll find an even newer version of the library that compiles with STRICT_WINDOWS defined. This necessitated a complete rewrite of some portions of the code, so consider it risky. Please try it and send me any bugs you find! — Dave Johnson POWERPC ASSEMBLY NITS Great article on PowerPC™ assembly language in develop Issue 21! It was clear, and I learned a lot reading it. But I have two nitpicks. On page 27 you show glue code for a cross-TOC call. The second instruction should be stw RTOC,20(SP) And the third instruction has a typo in it. It should be lwz r0,0(r12) — David Shayer Thanks for catching these. The interesting thing is that the second instruction appears that (wrong) way in the PPCAsm manual. Whoops! — Dave Evans UP ON THE DOWNSIDE I just wanted to tell you that I really liked the Veteran Neophyte column in Issue 21, about the downside of programming. It struck a nerve with me. The thing that goes through my mind whenever I sit down to write some code is “There has to be a better way!” Alas, by the time there is a better way, I will probably have moved on to some other profession. — Jamie Osborne Your Veteran Neophyte column on the pains of programming really struck a nerve (and not just because I have carpal tunnel syndrome). I often spend a while putting things on paper, only to abandon the project once I become convinced that I’ve figured out the solution and its implementation would just be hours and hours of typing. Sort of meta-programming. — Tom Busey I just finished reading the Veteran Neophyte columns in Issue 17 and Issue 21, “Why We Do It” and “The Downside.” They were given to me by LETTERS LETTERS 3 KEEP US ON OUR TOES! We welcome your nitpicking letters to the editors, especially regarding articles published in develop. Letters should be addressed to Caroline Rose — or, if technical develop-related questions, to Dave Johnson — at AppleLink CROSE or JOHNSON.DK. Or you can write to Caroline or Dave at Apple Computer, Inc., 1 Infinite Loop, M/S 303-4DP, Cupertino, CA 95014. All letters should include your name and company name as well as your address and phone number. Letters may be excerpted or edited for clarity (or to make them say what we wish they did).•
Reading notes: Source text is a reader letters column from the develop magazine; headline is not a distinct primary heading
- Printed product names
- CodeWarrior 5.5 · PowerPC™ · WindowExtensions.h · STRICT_WINDOWS
- Printed dates
- Issue 15 · Issue 21 · Issue 21’s · Issue 17
- Languages
- English
PDF page 5
PROJECTDRAG IMPRESSES I’ve been working with Tim Maroney’s ProjectDrag (Issue 23, “MPW Tips and Tricks: Customizing Source Control With SourceServer”), and I’m very impressed. I’ve never found an adequate way of using a revision control system on the Macintosh (Projector is too clumsy to use when you’re developing with CodeWarrior), and I had written off SourceServer completely after I had such a miserable experience with it under Symantec C++ 7.0. But Tim’s article and software have given that dog some new tricks. His programs are easy to use and powerful at the same time. Thank you very much for publishing Tim’s work in this issue, and I hope to see more about ProjectDrag in the future. — Phil Sulak Thanks for the feedback; we’re happy to know that you find ProjectDrag useful. There were a few problems with the previous version of ProjectDrag, so on this issue’s CD you’ll find a new version with a few bug fixes and enhancements. Also, the previous version was missing the makefile; it’s now on the CD. — Caroline Rose QTMA I read the article on QTMA by David Van Brink in Issue 23, and have a few additional questions. As Director of Audio for Human Code (an Austin multimedia developer), I’m looking for a way to convey an other-worldly quality to the soundscape of a CD-ROM title we’re developing. First, is QTMA supported on the PC platform? If it only works on the Mac OS platform, I’m back to the drawing board. Also, is it possible to seed a bank of custom-designed samples to be played using standard MIDI files with QTMA? If so, is there a developer’s guide available for programming within QTMA? — John Malcolm Smith First of all, you’ve probably noticed that there were no changes to the Music Architecture in QuickTime 2.1 after all. These changes have been delayed until the next release of QuickTime (which should ship by early 1996). The code on this issue’s CD has been revised so that it compiles with the 2.0 or 2.1 headers. On the PC side, QuickTime music tracks are supported, but only inside movies. So, compose your score on the Macintosh, import it into a QuickTime movie using MoviePlayer, and then save it flattened with the “Playable On Non-Apple Computers” box checked. This movie will play through Windows’ multimedia extensions, according to its MIDI setup. As far as adding your own instruments, you should be able to do this in the next QuickTime release in two ways: by dropping a component into the System Folder, to make a sound library available to all applications, or by inserting a sound into the music track of a particular movie. — David Van Brink PUZZLE PAGE DOESN’T STINK Re Lance Drake’s letter in Issue 22 entitled “Puzzle Page Stinks”: I strongly LETTERS LETTERS 3 IF YOU LIKE US, LET US KNOW What do you like, or not like, about develop (besides the Puzzle Page)? We welcome your letters, especially regarding articles published in develop. Letters should be addressed to Caroline Rose — or, if technical develop-related questions, to Dave Johnson — at AppleLink CROSE or JOHNSON.DK. Or you can write to Caroline or Dave at Apple Computer, Inc., 1 Infinite Loop, Cupertino, CA 95014. All letters should include your name and company name as well as your address and phone number. Letters may be excerpted or edited for clarity (or to make them say what we wish they did).•
Reading notes: Section headings such as QTMA and PUZZLE PAGE DOESN'T STINK appear mid-text, so reading order between letters and replies may be ambiguous Letter text in the Puzzle Page section is truncated mid-sentence after 'I strongly'
- Printed product names
- ProjectDrag · Projector · CodeWarrior · SourceServer · Symantec C++ 7.0 · QTMA · QuickTime 2.1 · QuickTime · MoviePlayer · Windows · develop · AppleLink
- Printed dates
- Issue 23 · Issue 22 · early 1996 · 2.0 · 2.1
- Languages
- English
PDF page 6
disagree. The Puzzle Page is the first article I read. From it I’ve learned new debugging tactics, and picked up cool MacsBug tricks and how to do more than just “G” from MicroBug. The fact that the “scoring” shouldn’t be taken literally is obvious; after all, KON & BAL never get the answer till 10 or less. Don’t let one humorless whiner ruin a good thing. Keep up the good work; develop is a great resource. — Steve Palmen I wanted to let you know how much I enjoy the Puzzle Page. I just graduated and was lucky enough to land a job programming on the Mac. Issue 22 is my first and I’ve already looked back at all of the previous Puzzles because I enjoy reading about the deepest, darkest Mac knowledge that I hope to stuff into my brain one day. It’s refreshing to have a technical journal that’s not afraid to crack a joke every couple of pages. I haven’t felt offended or mocked by your Puzzle Page. — Matt Glazier I just want to let you know that there are people out here who read and enjoy the Puzzle Page. I try to follow every twist and turn in the logic that leads to the final result. I’ve tracked down a few bugs in my own code that were complex and obscure enough to end up on the Puzzle Page, and it’s nice to see the steps someone else follows. — David Shayer . . . WELL, MAYBE JUST A LITTLE The letter from Lance Drake in Issue 22 about the Puzzle Page was, as you wrote, a surprise to you. To me it wasn’t. First I would like to state that the Puzzle Page is by far the best column in develop — technically very interesting and also amusing. This explains the good feedback you receive on it. Yet the “scoring” tables are indeed belittling, elitist, and intellectually arrogant. Even worse, they are offending. This is a detail, but it fully explains and justifies Mr. Drake’s angry letter. — Adriaan van Os Many thanks for all the work you put into develop. The production qualities are superb. I have only one complaint: get rid of KON & BAL’s Puzzle Page. I always feel depressed after reading it. — Andrew Trevorrow FINGER-CODED BINARY VARIATION I’d like to comment on Tobias Engler's Finger-Coded Binary column in Issue 21. Although I agree with most of what he said, Tobias’s approach, the 10-bit model, is far less natural than it needs to be. I find it much easier (at least more natural) to work with hands flat on the side of a table, using all fingers except thumbs — this results in the more commonly used 8-bit model. You can then use your thumbs for other things, such as branch prediction, status registers, or even complex instruction execution. I have one advantage over many people. The fact that I’m missing part of my right thumb enables me to do fractions. No other digital system I know of can do 0, 1/2, and 1 digits. — Martin-Gilles Lavoie There’s much more to the 10-bit model than you seem to realize. Have you ever had somebody tell you “You can eat as many Snickers bars as you can count on your hands”? Probably not. You wouldn’t want to stop at 256, would you? Concerning your fractional thumb: Your technological advantage over conventional digital systems will undoubtedly attract many copyists, which may result in a lot of unnecessary bloodshed. My advice to you is go and get a patent! — Tobias Engler d e v e l o p Issue 24 December 1995 4
Reading notes: Possible spacing artifact in 'develop is' and 'develop —' in running text, reading order is otherwise clear
- Printed product names
- develop · MacsBug · MicroBug · Snickers
- Printed dates
- December 1995 · Issue 22 · Issue 21 · Issue 24
- Languages
- English
PDF page 6
a friend who is an avid programmer. The type of things you described sounded just like my friend; I think he showed the columns to me to explain why every time I see him he’s sitting in front of the computer, and why he stays up till all hours of the morning working on programs that end up frustrating him. I thought I should let you know that your columns were appreciated not only by those who program, but by those who are close to programmers and wonder sometimes what unseen force has gotten hold of them and sucked them into their work. — Greta Meussling The “Downside” column seems to have hit home with many people; I got a lot of comments about it. It’s nice to be assured that I’m not the only reluctant programmer in the world, and that I’m not the only one who thinks there ought to be a better way. — Dave Johnson ACROBAT: PRETTY DARN FINE This probably isn’t the first time you’ve heard this, but how about offering develop in Acrobat (PDF format) as well? For me, Acrobat is more convenient than Apple DocViewer as an application and, most important, its files are a lot smaller. I routinely convert develop to PDF and then add PDF hyperlinks and bookmarks. For one issue I converted, for instance, the DocViewer version (without the index) is 2.9 meg, while the PDF version is only 770K. It’s even smaller than the StuffIt version of the DocViewer document (1.2 meg). And the onscreen appearance is identical. I still like the HTML versions for their immediacy, but for true WYSIWYG, low conversion effort, and small file size, you can’t beat PDF. — Shannon Spires We agree with you. You’ll notice that on this issue’s CD, every issue of develop has been converted to Acrobat — along with all the other files on the CD that used to be in Apple DocViewer format. Enjoy! — Caroline Rose UP ON THE WEB Thanks for making both develop and Apple Directions available on the World Wide Web. We’re on a very tight budget and can’t afford a subscription at this time. The online versions allow us to access the information and still come out with a product on budget. — Mattias Fornander I’m a student who reads develop online via the Internet through UCLA’s (UNIX®) workstations. Your putting develop on the World Wide Web is great! Even though the comfort of reading (and printing) develop online will never equal the ease of the regular version, I don’t have to fight with ftp and MS-DOS floppy disks to read your magazine. So please continue to publish develop in HTML. IMHO, your magazine is a service to the Mac developer community, and you would help Apple by letting every possible programmer access it without hassle. Thanks for this effort. — Eric Gouriou We’ve got articles from some issues of develop on the World Wide Web now (at http://www.apple.com, in the Developer Services area) and are working on putting more up there. This kind of feedback helps make it happen — so thanks for writing. Readers of the online version: Don’t confuse printed develop with the monthly Apple Developer Mailing; a subscription to the monthly mailing (which includes a CD that has develop on it) is rather costly, but it costs only $30 for four quarterly printed issues of develop (with Bookmark CD). See the inside front cover of this issue for ordering information. (Sorry, I couldn’t resist this opportunity for a plug!) — Caroline Rose d e v e l o p Issue 23 September 1995 4
Reading notes: Source appears to be a reader-letters page from the magazine develop, Issue 23; no primary headline is clearly printed. Some letters are truncated at the start of the supplied excerpt, so reading order may be partial.
- Printed product names
- develop · Acrobat · Apple DocViewer · StuffIt · Apple Directions · Apple Developer Mailing · Bookmark CD
- Printed prices
- $30
- Printed dates
- September 1995
- Languages
- English
PDF page 7
Music the Easy Way: The QuickTime Music Architecture
Music has become cheap and plentiful on the Macintosh, and many applications are now making “casual” use of music. With the QuickTime Music Architecture, or QTMA, including music in your application has never been simpler. Its API is straightforward and easy to use, and you don’t need intimate knowledge of MIDI protocols or channel and voice numberings. Nor do you need an external MIDI device; QTMA can play music directly out of the Macintosh’s built-in speakers. And QTMA is widely available — it’s on every Macintosh that has QuickTime 2.0 (or later) installed. The QuickTime Music Architecture is perfect for adding a little bit of music to your application. It has a set of well-supported high-level calls for playing musical notes and sequences, it deals with MIDI protocols so that your application doesn’t have to, and it handles timing for entire tunes. With QTMA, you can specify musical instruments independent of device, and play music either directly out of built-in speakers or through a MIDI synthesizer. QTMA first became available with QuickTime 2.0 and offers some new features in QuickTime 2.1, which should be available through APDA by the time you read this. The code in this article is written for version 2.1; minor changes will be required for 2.0. (Before making use of the QuickTime 2.1 features, your code should call Gestalt with the gestaltQuickTimeVersion selector and check the version number returned.) This article shows how your application can use QTMA to play individual notes, sequences of notes composed on the fly, or prescored sequences, and how to read input from external MIDI devices. This issue’s CD contains all the sample code and a THINK C project to build and run it. We’ll start with a look at QTMA in relation to other ways of supporting music on the Macintosh; then we’ll get down to business and play some music with QTMA. QTMA IN CONTEXT — A LOOK AT MUSIC AND MIDI SUPPORT ON THE MACINTOSH Support for MIDI and musical applications on the Macintosh platform has a somewhat checkered history. Developers have been faced with such options as writing their own serial drivers, using the MIDI Manager, or using third-party operating system extensions such as the Open Music System (OMS, formerly Opcode MIDI DAVID VAN BRINK Music the Easy Way: The QuickTime Music Architecture MUSIC THE EASY WAY: THE QUICKTIME MUSIC ARCHITECTURE 5 DAVID VAN BRINK lives in a tiny experimental habitat overlooking the Denny’s parking lot in Santa Cruz, California. He experiences life at 14,400 bits per second. See http://www.srm.com for more information.•
Reading notes: OCR reading order may be mixed where the running header and author byline appear between body text fragments Possible hyphenation or line-break artifacts in 'Open Music System (OMS, formerly Opcode MIDI' and 'DAVID VAN BRINK' placement
- Printed product names
- QuickTime Music Architecture · QuickTime · QTMA · Macintosh · MIDI · Open Music System · OMS · Opcode MIDI · APDA · MIDI Manager · THINK C
- Printed dates
- QuickTime 2.0 · QuickTime 2.1
- Languages
- English