TweetFollow Us on Twitter

March 94 - Letters

LETTERS

FLOATING BUGS
I liked Issue 15's article on floating windows and have successfully implemented your routines. I did, however, find one bug. Your routine HideReferencedWindow can leave the process's window list pointing to a deallocated window when there are no floating windows.
-- Chester Murphy

Thanks for pointing this out. It's fixed -- along with some other small bugs -- in the code on this issue's CD. (It's been fixed since Issue 16's CD.)
-- Dean Yu

PRAGMATIC SOLUTION
Floating windows is one of my favorite subjects. I tried to compile your WindowExtension example, using THINK C 6.0. My first problem was with USES68KINLINES. THINK C checks the #pragma parameter with the function declaration. So I tried to use A1 and D0 as parameters, but then I needed a few more #pragmas for the activate handlers. I still don't have a working version.

Also, could you explain why we need CallUniversalProc? I'm quite happy with the C syntax.

Thank you very much for doing such a good job on the article.

-- Robert Puyol

The use of USES68KINLINES has changed since Issue 15 went to press. Currently, #pragma parameters aren't used any more, so you shouldn't have any problems using the header file with THINK C. Additionally, the new version of the floating windows code uses the universal header files that are discussed in the "Making the Leap to PowerPC" article in Issue 16 and are on this issue's CD. We recommend using CallUniversalProc in your source code (or one of its specific variants, like CallActivateHandlerProc in the floating windows code) to allow for greater portability of your source code between platforms. For a detailed explanation of using CallUniversalProc and UniversalProcPtrs, check out the aforementioned article in Issue 16.
-- Dean Yu

DESKTOP FILES REDUX
I liked Issue 15's Puzzle Page, about the damaged desktop files. I've seen this bug often, since I fix a lot of damaged hard disks. You probably know this, but if the desktop files get hosed in a certain way, rebuilding them in the Finder won't fix them. You have to delete them (or rename them) to get the Finder to build new files from scratch. AutoDoubler comes with a little utility called Desktop Reset just for deleting the desktop files.
-- David Shayer

I didn't know this when I wrote that Puzzle Page, but you're right. When the desktop file gets damaged to the point where the File Manager can't open it, the Finder can't rebuild the file, so you have to throw it away or rename it. Thanks for the feedback.
-- Konstantin Othmer

IF MORE OF YOU DON'T WRITE, WE'LL HAVE TO START MAKING THEM UP! 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 303-4DP, 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). *

 

Community Search:
MacTech Search:

Software Updates via MacUpdate

Latest Forum Discussions

See All

Combo Quest (Games)
Combo Quest 1.0 Device: iOS Universal Category: Games Price: $.99, Version: 1.0 (iTunes) Description: Combo Quest is an epic, time tap role-playing adventure. In this unique masterpiece, you are a knight on a heroic quest to retrieve... | Read more »
Hero Emblems (Games)
Hero Emblems 1.0 Device: iOS Universal Category: Games Price: $2.99, Version: 1.0 (iTunes) Description: ** 25% OFF for a limited time to celebrate the release ** ** Note for iPhone 6 user: If it doesn't run fullscreen on your device... | Read more »
Puzzle Blitz (Games)
Puzzle Blitz 1.0 Device: iOS Universal Category: Games Price: $1.99, Version: 1.0 (iTunes) Description: Puzzle Blitz is a frantic puzzle solving race against the clock! Solve as many puzzles as you can, before time runs out! You have... | Read more »
Sky Patrol (Games)
Sky Patrol 1.0.1 Device: iOS Universal Category: Games Price: $1.99, Version: 1.0.1 (iTunes) Description: 'Strategic Twist On The Classic Shooter Genre' - Indie Game Mag... | Read more »
The Princess Bride - The Official Game...
The Princess Bride - The Official Game 1.1 Device: iOS Universal Category: Games Price: $3.99, Version: 1.1 (iTunes) Description: An epic game based on the beloved classic movie? Inconceivable! Play the world of The Princess Bride... | Read more »
Frozen Synapse (Games)
Frozen Synapse 1.0 Device: iOS iPhone Category: Games Price: $2.99, Version: 1.0 (iTunes) Description: Frozen Synapse is a multi-award-winning tactical game. (Full cross-play with desktop and tablet versions) 9/10 Edge 9/10 Eurogamer... | Read more »
Space Marshals (Games)
Space Marshals 1.0.1 Device: iOS Universal Category: Games Price: $4.99, Version: 1.0.1 (iTunes) Description: ### IMPORTANT ### Please note that iPhone 4 is not supported. Space Marshals is a Sci-fi Wild West adventure taking place... | Read more »
Battle Slimes (Games)
Battle Slimes 1.0 Device: iOS Universal Category: Games Price: $1.99, Version: 1.0 (iTunes) Description: BATTLE SLIMES is a fun local multiplayer game. Control speedy & bouncy slime blobs as you compete with friends and family.... | Read more »
Spectrum - 3D Avenue (Games)
Spectrum - 3D Avenue 1.0 Device: iOS Universal Category: Games Price: $2.99, Version: 1.0 (iTunes) Description: "Spectrum is a pretty cool take on twitchy/reaction-based gameplay with enough complexity and style to stand out from the... | Read more »
Drop Wizard (Games)
Drop Wizard 1.0 Device: iOS Universal Category: Games Price: $1.99, Version: 1.0 (iTunes) Description: Bring back the joy of arcade games! Drop Wizard is an action arcade game where you play as Teo, a wizard on a quest to save his... | Read more »

Price Scanner via MacPrices.net

Apple’s M4 Mac minis on sale for record-low p...
B&H Photo has M4 and M4 Pro Mac minis in stock and on sale right now for up to $150 off Apple’s MSRP, each including free 1-2 day shipping to most US addresses. Prices start at only $469: – M4... Read more
Deal Alert! Mac Studio with M4 Max CPU on sal...
B&H Photo has the standard-configuration Mac Studio model with Apple’s M4 Max CPU in stock today and on sale for $300 off MSRP, now $1699 (10-Core CPU and 32GB RAM/512GB SSD). B&H also... Read more

Jobs Board

All contents are Copyright 1984-2011 by Xplain Corporation. All rights reserved. Theme designed by Icreon.