TweetFollow Us on Twitter

June 93 - Letters

LETTERS

DEBUGGING LESSON
I just finished reading the debugging article in Issue 13 and I wondered if you had ever written up anything about this one:
TYPE
	LHdl = ^LPtr;
	LPtr = ^LONGINT;

{$S Fill_Seg}
PROCEDURE FillWithData(h:Handle);
BEGIN
h^^ := 23;
END;


{$S Main}

PROCEDURE CanYouSpotTheProblem;

VAR
	h :LHdl;

BEGIN
	h := LHdl(NewHandleClear(Size));
	FillWithData(h);
END.
I call this "Routines That Don't Move Memory, Most of the Time." The problem comes about because of the hidden trap to LoadSeg. If all the code resources are preloaded, everything is OK. But if they aren't, the call to FillWithData may cause a memory move, and h is not locked. This is especially vile and nasty when, like us, you run in a very limited heap and unload your code frequently. I know that if you read Inside Macintosh Volume II very carefully this is clear. But most of the interesting examples are the ones that are well documented but hard to catch.
--Bob Tipton

Thanks for the example. You're right, of course; calling routines in other, unloaded segments can indeed move memory. This is documented in various places, but unless you understand very clearly how your program occupies memory and how the Segment Loader works, it's easy to overlook. Judicious use of a good heap scramble/purge will catch this one before it catches you. Thanks for writing!
--Dave Johnson

WHERE IN THE WORLD(SCRIPT)?
I was looking for the WorldScript folder on Issue 12's Developer CD, "Wayne's GWorld" (Dev.CD Nov/Dec 92). According to the Contents Catalog stack, the WorldScript folder should be found in this path: Dev.CD Nov/Dec 92: System Software: WorldScript. But it's not there. I talked with a friend of mine who has the same CD, and he found the folder where it's supposed to be. We checked our CDs and found out that his says 564.6 MB on disc, 69.7 MB available, while mine says 555.5 MB on disc, 78.9 MB available. What's going on?
--Toru Kawate

P.S. Thank you for the fine journal and CD. I really enjoy them.

I received Issue 12 of develop with the Nov/Dec 1992 Developer CD Series disc. I enjoy the Developer CD but had the following trouble: I used the Contents Catalog on the CD and found the title"WorldScript." But I didn't find the folder at the pathname Dev.CD Nov/Dec 92: System Software: WorldScript.
--Hirokazu Yaguchi

At the last minute, WorldScript was pulled from the CD accompanying develop, but there wasn't enough time to remove it from the Contents Catalog. WorldScript did, however, remain on the Developer CD Series disc received monthly by members of Apple's developer programs. The reason for this is tied in with why develop now has its own CD, separate from the Developer CD Series disc; for details, see the editorial on page 2.
--Caroline Rose

WHEN TO EXPECT DEVELOP
Sorry to disturb you, but because I've had problems with my subscription (two copies, no copies) -- which I've worked out, I think, with the DEV.SUBS people -- I'm wondering: Is there some sort of publication schedule available that will allow me to fret about this without disturbing anyone? ("Gee, it's two weeks past when this should be out . . . what am I missing out on?!")

Y'all are doing a fine job. Just be sure to run your issues through a Quark SmugCheck to keep the content only kinda wacky and smug without being too much that way. Thanks!
--J. C. Burns

I'm sorry you've had subscription problems, but I'm grateful that you pursued them with DEV.SUBS rather than sending an AppleLink to CROSE or DEVELOP; many developers make the mistake of contactingdevelop staff with these problems, but it's really out of our realm. We are, however, doing our best to make the problems go away.

If you're located in the U.S., you should normally receive develop around the first of March, June, September, and December. (If you're outside the U.S., it's hard to say, because develop might need to wait for other materials to be merged into the same mailing.)

Thanks for the tip on SmugCheck; it's just what we need!
--Caroline Rose

M.TN.DESIGNATIONS
I notice you still add the numbers in references to Tech Notes. If dropping the numbers were such progress, that wouldn't be necessary. And the new alphanumeric reference codes are not used.

I'm a technical person who is used to abbreviations everywhere for conciseness. Besides, citing with full titles adds noise and a lot of repetitiveness.
--Peter Fink

We decided to include the old numbers in references to Tech Notes to help out those people who like to use hard copy but still have the numbered versions. We'll stop doing that once enough time has elapsed that we expect everyone will have the new, unnumbered versions.

For a variety of reasons, we decided not to include the new designations, such as "M.PT.StandAloneCode," which identify the category/folder for each Note. We figured people could find the Notes in the new file organization easily enough -- a Note on QuickTime is in the QuickTime folder, right? But we've since realized that the category isn't always obvious. So starting with this issue we refer to Notes by category -- for example, "See the Macintosh (Platforms & Tools) Technical Note, 'Stand-Alone Code, ad nauseam.'"

Many developers simply look up specific notes in the various Tech Note indexes, and don't use the special designations at all. For those who do use them, they've been improved to correlate more closely to the Notes' titles; for more on this and other recent Tech Note improvements, see the box on this page.

We're always open to suggestion, but so far you're the only one to mention this. If others reading this reply have similar feedback, I hope they'll let us know.
--Caroline Rose

TECH NOTES AND Q&AS: STATE OF THE UNION

BY NEIL DAY, TECH NOTE AND SAMPLE CODE POOH-BAH

On the August 1992 Developer CD Series disc, the new organization of Macintosh Technical Notes made its debut. Since then, we've been listening for suggestions for improvement. The vast majority of the feedback has been positive, but you did point out a few areas for attention:

  • Better name correlation: Filenames, titles, and designations like "M.PT.StandAloneCode" needed to be more tightly bound to one another. The latest release fixes this problem; Tech Notes should be easier to find across the print and electronic versions.
  • Organization: Tech Notes are now organized alphabetically by title within each section. This was always the intention, but because filenames and titles didn't really match, things were a little haphazard.
  • Locating items in print: We've added the designation to the footer of each note, so you can quickly tell where you are as you flip through the pages.

Many of you have asked how to quickly locate the most recently written and updated Tech Notes. On the CD, aliases to the latest Notes can always be found in the "What's new on this CD?" folder. Using the Finder's View by Date option on the category folders is a handy way to see the most recent updates.

Also, please note that to group related information more logically, we've integrated Q&As into the Tech Note library. Q&As appear at the beginning of every section in the print version, and have the label "Essential" in the electronic version (or a different label if you've changed that label name on your system).

Many of you noticed that the Tech Note and Q&A stacks have gone away: the Tech Note library is now available in Apple DocViewer format (as well as Microsoft Word files). You should find the searching and viewing in Apple DocViewer much more usable; please check it out.

These changes should make information much easier to find. As always, if you have suggestions or ideas for improving the Tech Note library, please let me know!

Thanks to Doug McKenna, the author of Resorcerer, for pointing out these problems.


WE WORRY WHEN YOU DON'T WRITE We welcome timely letters to the editors, especially from readers reacting to articles that we publish in develop. Letters should be addressed to Caroline Rose (or, if technical develop-related questions, to Dave Johnson) at Apple Computer, Inc., 20525 Mariani Avenue, M/S 75-2B, Cupertino, CA 95014 (AppleLink CROSE or JOHNSON.DK). 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). *

Send your feedback on Tech Notes or Sample Code to Neil at AppleLink NMDAY or on the Internet at nmday@apple.com.*

 

Community Search:
MacTech Search:

Software Updates via MacUpdate

Latest Forum Discussions

See All

The secrets of Penacony might soon come...
Version 2.2 of Honkai: Star Rail is on the horizon and brings the culmination of the Penacony adventure after quite the escalation in the latest story quests. To help you through this new expansion is the introduction of two powerful new... | Read more »
The Legend of Heroes: Trails of Cold Ste...
I adore game series that have connecting lore and stories, which of course means the Legend of Heroes is very dear to me, Trails lore has been building for two decades. Excitedly, the next stage is upon us as Userjoy has announced the upcoming... | Read more »
Go from lowly lizard to wicked Wyvern in...
Do you like questing, and do you like dragons? If not then boy is this not the announcement for you, as Loongcheer Game has unveiled Quest Dragon: Idle Mobile Game. Yes, it is amazing Square Enix hasn’t sued them for copyright infringement, but... | Read more »
Aether Gazer unveils Chapter 16 of its m...
After a bit of maintenance, Aether Gazer has released Chapter 16 of its main storyline, titled Night Parade of the Beasts. This big update brings a new character, a special outfit, some special limited-time events, and, of course, an engaging... | Read more »
Challenge those pesky wyverns to a dance...
After recently having you do battle against your foes by wildly flailing Hello Kitty and friends at them, GungHo Online has whipped out another surprising collaboration for Puzzle & Dragons. It is now time to beat your opponents by cha-cha... | Read more »
Pack a magnifying glass and practice you...
Somehow it has already been a year since Torchlight: Infinite launched, and XD Games is celebrating by blending in what sounds like a truly fantastic new update. Fans of Cthulhu rejoice, as Whispering Mist brings some horror elements, and tests... | Read more »
Summon your guild and prepare for war in...
Netmarble is making some pretty big moves with their latest update for Seven Knights Idle Adventure, with a bunch of interesting additions. Two new heroes enter the battle, there are events and bosses abound, and perhaps most interesting, a huge... | Read more »
Make the passage of time your plaything...
While some of us are still waiting for a chance to get our hands on Ash Prime - yes, don’t remind me I could currently buy him this month I’m barely hanging on - Digital Extremes has announced its next anticipated Prime Form for Warframe. Starting... | Read more »
If you can find it and fit through the d...
The holy trinity of amazing company names have come together, to release their equally amazing and adorable mobile game, Hamster Inn. Published by HyperBeard Games, and co-developed by Mum Not Proud and Little Sasquatch Studios, it's time to... | Read more »
Amikin Survival opens for pre-orders on...
Join me on the wonderful trip down the inspiration rabbit hole; much as Palworld seemingly “borrowed” many aspects from the hit Pokemon franchise, it is time for the heavily armed animal survival to also spawn some illegitimate children as Helio... | Read more »

Price Scanner via MacPrices.net

Apple’s 13-inch M2 MacBook Airs return to rec...
Apple retailers have 13″ MacBook Airs with M2 CPUs in stock and on sale this weekend starting at only $849 in Space Gray, Silver, Starlight, and Midnight colors. These are the lowest prices currently... Read more
Best Buy is clearing out iPad Airs for up to...
In advance of next week’s probably release of new and updated iPad Airs, Best Buy has 10.9″ M1 WiFi iPad Airs on record-low sale prices for up to $200 off Apple’s MSRP, starting at $399. Sale prices... Read more
Every version of Apple Pencil is on sale toda...
Best Buy has all Apple Pencils on sale today for $79, ranging up to 39% off MSRP for some models. Sale prices for online orders only, in-store prices may vary. Order online and choose free shipping... Read more
Sunday Sale: Apple Studio Display with Standa...
Amazon has the standard-glass Apple Studio Display on sale for $300 off MSRP for a limited time. Shipping is free: – Studio Display (Standard glass): $1299.97 $300 off MSRP For the latest prices and... Read more
Apple is offering significant discounts on 16...
Apple has a full line of 16″ M3 Pro and M3 Max MacBook Pros available, Certified Refurbished, starting at $2119 and ranging up to $600 off MSRP. Each model features a new outer case, shipping is free... Read more
Apple HomePods on sale for $30-$50 off MSRP t...
Best Buy is offering a $30-$50 discount on Apple HomePods this weekend on their online store. The HomePod mini is on sale for $69.99, $30 off MSRP, while Best Buy has the full-size HomePod on sale... Read more
Limited-time sale: 13-inch M3 MacBook Airs fo...
Amazon has the base 13″ M3 MacBook Air (8GB/256GB) in stock and on sale for a limited time for $989 shipped. That’s $110 off MSRP, and it’s the lowest price we’ve seen so far for an M3-powered... Read more
13-inch M2 MacBook Airs in stock today at App...
Apple has 13″ M2 MacBook Airs available for only $849 today in their Certified Refurbished store. These are the cheapest M2-powered MacBooks for sale at Apple. Apple’s one-year warranty is included,... Read more
New today at Apple: Series 9 Watches availabl...
Apple is now offering Certified Refurbished Apple Watch Series 9 models on their online store for up to $80 off MSRP, starting at $339. Each Watch includes Apple’s standard one-year warranty, a new... Read more
The latest Apple iPhone deals from wireless c...
We’ve updated our iPhone Price Tracker with the latest carrier deals on Apple’s iPhone 15 family of smartphones as well as previous models including the iPhone 14, 13, 12, 11, and SE. Use our price... Read more

Jobs Board

Licensed Practical Nurse - Womens Imaging *A...
Licensed Practical Nurse - Womens Imaging Apple Hill - PRN Location: York Hospital, York, PA Schedule: PRN/Per Diem Sign-On Bonus Eligible Remote/Hybrid Regular Read more
DMR Technician - *Apple* /iOS Systems - Haml...
…relevant point-of-need technology self-help aids are available as appropriate. ** Apple Systems Administration** **:** Develops solutions for supporting, deploying, Read more
Operating Room Assistant - *Apple* Hill Sur...
Operating Room Assistant - Apple Hill Surgical Center - Day Location: WellSpan Health, York, PA Schedule: Full Time Sign-On Bonus Eligible Remote/Hybrid Regular Read more
Solutions Engineer - *Apple* - SHI (United...
**Job Summary** An Apple Solution Engineer's primary role is tosupport SHI customers in their efforts to select, deploy, and manage Apple operating systems and Read more
DMR Technician - *Apple* /iOS Systems - Haml...
…relevant point-of-need technology self-help aids are available as appropriate. ** Apple Systems Administration** **:** Develops solutions for supporting, deploying, Read more
All contents are Copyright 1984-2011 by Xplain Corporation. All rights reserved. Theme designed by Icreon.