TweetFollow Us on Twitter

Dec 90 Mousehole
Volume Number:6
Issue Number:12
Column Tag:Mousehole Report

AFX and SuperDrives

By Larry Nedry, Mousehole BBS

From: Gandalf

Re: SuperDrive problem

I’ve had some weird problems with my SuperDrive (SE/30). It wouldn’t eject the disk when requested (by the software) to do so, and, after the failed eject, it would attempt to remount it. But the access speed reduced to a crawl!!! it would work, but in slow-motion. Almost 30 seconds for displaying the desktop, and minutes for launching any small applications.

The emergency cure was having the paper clip at hand, installing SoundMaster to signal the ejects, and at the sound, give the drive a hand at ejecting the disk. Reinserting after this led to normal mount, not snail-speed.

As a side effect, since the problem aroused, it would also fail to read DOS drives, be it from DOS mounter, SoftPC or Apple File Exchange.

I tried swapping the eject motor for one from another SuperDrive, and that didn’t fix the problem.

What should I do? (by myself, not a dealer please!).

From: Chuckerp

Re: SuperDrive problem

Gandalf-- had the exact same problem, found the answer, it’s easy!

Absolutely it will make you crazy, no way to stop it except the paperclip... it took many days of pleading to find out that:

The default action is for EVERY TRANSLATOR to examine EVERY FILE on the DOS diskette to see if it can translate it, WHEN YOU MOUNT THE VOLUME. This crazy default means that when you buy some extra translators (as I had done) you can have up to (say) 50 different programs run against every file on the diskette looking for God only knows what! The mount time can literally be hours!

The fix is: load Apple File Exchange, insert a blank diskette, FORMAT the diskette as MS-DOS, then “tear off” the “MSDOS TO MAC” menu.

Uncheck every one of the items in the menu and then SAVE the EXCHANGE SETTINGS under the FILE menu. Thereafter, restore the exchange settings as the first thing you do, or on the most recent updates of AFX, double click on the exchange settings file to restore them (early version didn’t do this properly).

Now insert your DOS diskette and see it mount in a few seconds.

From: Hal

Re: Bypass Chooser

I am responding to your query for a way to change between two printers from within an application. I have written some externals for 4th Dimension which do just that. I realize that this type of feature violates the Apple User Interface Guidelines, but there are ways that this type of feature can be implemented without removing any control the user may have or want. For instance, these externals were designed so that the user could set up a list of reports to be printed and a list of printers to print them to and still print them all in a single batch process. The user still retains full control over which printer gets used when and for what, but he is not restricted by the Chooser interface. Anyway...

The printer type is stored in the resource ‘STR ‘ with ID = -8192 in the system file. The currently selected printer is stored in the resource file named in this string. It is kept in the ‘PAPA’ resource ID = -8192 of this file in the system folder. This resource contains the device name, the device type, zone, and network address. In the case of non-AppleTalk printers, this resource doesn’t even exist (and doesn’t need to). The device name, type and zone are standard Pascal strings except that only the space that is needed for each string is used. The next string follows immediately after the last character in the previous string. The device address is a LongInt which follows immediately after the device zone. The device address is obtained by doing a named look up over the AppleTalk network. I found an example of how to do this and went from there.

I am willing to send you a copy of my source files, but I would like to take some time to clean them up a bit. This source will consist of two externals which must be used together in a 4D database in order to switch between printers. I can include this database if you have 4D. If you want me to send you the source, just let me know.

P.S.Another alternative to the FKEY which was suggested to you is to use QuicKeys 2. QuicKeys 2 has several extensions now, one of which is called Choosy and allows you to select a print with a QuicKey.

From: Derek

Re: HERMES10

I think HERMES10 is the best new bbs out there, but I now hear the author doesn’t want to support it anymore.. I have no idea if this is true, but if so this is bad news.. cause I really like this bbs and been thinking of putting up a bbs with HERMES10.

From: Derek

Re: BBS Writing...

I been looking at the available bbs programs out there and decided that the only way I can get the features I want in a bbs is to write one myself. What I would really like to do is modify an existing one. Is there any bbs programs that have the code in the public domain? Some programs I have looked at are real good but out of date, and the authors no long support them.

Any help would be really appreciated. Also if someone is working on one and looking for a beta site. I’d really like to help out. Before I got my Macintosh, I used to run a bbs for 2 years I wrote on the Apple //e. And really am eager to put up a bbs on the Mac.

From: Ted

Re: Where’d my bitmap go?

Hey guys (and gals)...

I have a question I hope someone can help me with. I have some code that draws an image on the Mac screen, and then I copy a portion of the screen to a bitmap for placement on my screen at a later time. I can use CopyBits from the initial procedure and everything works fine, but if I leave that procedure, my bitmap data becomes garbage. I have tried making the variable global to the entire project, I have tried passing the variable from one procedure to the next till I need it again, I have tried giving a handle to the variable, locking the handle immediately, and then not unlocking it till I quit the application. nothing seems to work. I have other projects that uses bitmaps successfully, no problems. But this one has me baffled. I hope someone out there has run into this before, and knows of a fix, or at least something else I can try. I am at a total loss for explanation.

I have a Mac IIcx, System 6.0.4, no inits, and Lightspeed Pascal 3.0.

From: Wlc

Re: MPW vs THINK

If you haven’t already found out here are some things I’ve discovered about the Think vs. MPW question: Think is A LOT faster. MPW, especially when doing C++/MacApp stuff is quite slow (and a memory hog to boot! you’ll need 3MB minimum to do MacApp/C++ work.) Think gets along fine in 2.5MB

MPW is very expensive: $400 for the MPW/C bundle, $175 for C++, and another $275 for MacApp. $850.00 is pretty steep for most of us but could be a business expense for some.

From: Donarb

Re: TCL question

The code for opening a window when the program starts up is located in CApplication’s method StartUpAction. To get rid of this behavior you would have to create a new method in CStarterApp.c. Just remove the line that starts: if (numPreloads...).

From: Gord

Re: B-Tree libraries

Has anybody had experience with the C-Tree or C-Index B-Tree libraries??

From: Mcmatt

Re: Saving TEStyle stuff

I am trying to save a text edit record and its associated style record to disk for later access. I have no examples as to how to do this, and I was wondering if there was anyone out there who does. I understand how to do this for the old type text edit, but am unsuccessful with the new stuff. Any help would be appreciated!

From: Istewart

Re: Pattern Alignment Question

I’ve just bought a Mac. I’m using Think C 4.0; I’ve got Inside Macintosh I-V, most of the technical notes, and a borrowed copy of Macintosh Programming Primer (Dave Mark & Cartwright Reed.)

I’m working on the EventTutor example from that book. This has a window that scrolls up continuously, listing the events that the program receives (shades of glass teletype), and another window displaying a picture. I was curious to see how the update region was maintained during scrolling when the window was partially obscured by another.

To see where the update region was, I added a FillRgn after the ScrollRect to fill the update region with the “gray” pattern. This worked sort-of OK, and verified that all the various areas uncovered by the scroll were indeed added to the update region. The glitch was in the gray pattern itself; each scroll operation in this program scrolls the screen up by a constant 15 pixels; this seemed to cause the 8x8 bit pattern to be misaligned with the previously filled areas.

While not directly related to what I was trying to find out (almost everything!) it seemed to me that there had to be a simple way to handle this. I searched through Inside Mac, for any references to alignment of patterns (or/and pens) and came up with nothing. I decided to experiment with SetOrigin, this being the only likely-looking area.

After a bit of trial and error (SetOrigin works relative to portBits.bounds, for instance), I got the result I wanted. I basically offset the origin by a value (modulus 8) that caused the coordinates to align correctly with the pattern; I kept a record of the offset and then applied this to all coordinates that I specified for drawing in the window.

I used modulus 8 on the offset because the continuous scrolling up would soon overflow the 15-bit limit on the coordinate system, which may cause other problems!

Now, what I’m hoping someone can tell me ... is this the way to do it?? This method seems to work OK within this simple program, but could it cause more problems later? For instance, there’s a warning (I-314) that the origin needs to be (0,0) for the Control Manager to work properly. Obviously, I could just change the origin for the duration of the drawing operation that needs to be aligned, and then set it back (this would also simplify other operations, I guess). Are there any other pitfalls using this technique?

One alternative (that I don’t really like) would be to rearrange the pattern itself.

So, what’s the usual method of handling this situation (other than ignoring it, of course!!)?

Another (probably dumb) question:

Why doesn’t the background of the window get set to “bkPat” when the window is initially drawn, or when part of it is exposed? The ScrollRect and EraseRect use this pattern, but I can’t find any documentation on what happens to these other regions. They just seem to get initialized to white ... which is just a waste of time if the next thing I have to do is overwrite them with another pattern ...

From: Derek

Re: Tools...

I been doing some small programming on the Mac in C, and want to work on a major project, but do not have all the tools and experience in C. Are there any good libraries that would be very helpful in writing a application? I would like some that have some simple data base functions and also some communication functions.

From: Tomcat

Re: Greying out popup menus

A quick way to do this is to ResEdit yourself another userItem in the DITL resource of your dialog. It should physical lay over top of the current pop-up menu and title. THIS new userItem should be what you send to DisableItem in your code. You should be successful using this method.

From: Thehulk

Re: CtoPstr

CtoPstr does the conversion inline. If you use the same string again in your C program you have to change it back to a C string using PtoCstr.

From: Csb

Re: TIFF FILES

TAG... YOU’RE IT!! CAN ANYONE TELL ME WHERE I CAN GET SOME INFO ON TIFF FILE FORMATS ETC??? THANK YOU AND GOOD NIGHT

From: Handres

Re: Resetting the Parameter RAM

Does anyone know how I force a reset from any application (by a key-combination ?) to the Parameter RAM to get back the initial value of 9600 Baud for portA and portB fields in the SysParmType record ?

Thanks for help!

From: Johnbaro

Re: real-time animation

Hi. I’m new here. I was told that MouseHole is one of the best places to get Mac technical info, so here’s my problem: I’m trying to do some simple animations with large color images in real time. Palette animation looks like the best way to go - it’s noticeably faster than offscreen bitmaps in this case. The problem is that it’s a little too slow.

It takes about 40-45 msec to execute a call to AnimatePalette with a 256-color palette on my IIcx (that’s 3 video frames!). I could live with this speed for some things, but I’m doing research on the visual system and it’s important that I know exactly what’s on the screen at all times. My question is: What happens during that 45 msec?

Is the screen continuously updated over 3 frames or are other things being done in the background and the screen is then redrawn during the last 15-msec frame? If it takes 3 frames to redraw the screen then a moving image will “break apart”, and that’s no good (it doesn’t appear to be breaking apart, but it’s too fast to tell). I would also like to know if a faster machine and/or a QuickDraw accelerator would improve the speed of this particular operation? Would it be possible to get it down to the frame rate? Any info would be greatly appreciated.

From: Jdinh

Re: script manager

Hi, I am trying to set up a foreign language font that takes advantage of the Script Manager. IM vol 5 refers to a Script Manager Developer package that APDA no longer distribute. Can anyone tell me where I can find information regarding: font script, script interface system, key script, and double-byte character? Is key script the same as the KCHR resource? Thanks

 

Community Search:
MacTech Search:

Software Updates via MacUpdate

Ableton Live 11.3.11 - Record music usin...
Ableton Live lets you create and record music on your Mac. Use digital instruments, pre-recorded sounds, and sampled loops to arrange, produce, and perform your music like never before. Ableton Live... Read more
Affinity Photo 2.2.0 - Digital editing f...
Affinity Photo - redefines the boundaries for professional photo editing software for the Mac. With a meticulous focus on workflow it offers sophisticated tools for enhancing, editing and retouching... Read more
SpamSieve 3.0 - Robust spam filter for m...
SpamSieve is a robust spam filter for major email clients that uses powerful Bayesian spam filtering. SpamSieve understands what your spam looks like in order to block it all, but also learns what... Read more
WhatsApp 2.2338.12 - Desktop client for...
WhatsApp is the desktop client for WhatsApp Messenger, a cross-platform mobile messaging app which allows you to exchange messages without having to pay for SMS. WhatsApp Messenger is available for... Read more
Fantastical 3.8.2 - Create calendar even...
Fantastical is the Mac calendar you'll actually enjoy using. Creating an event with Fantastical is quick, easy, and fun: Open Fantastical with a single click or keystroke Type in your event details... Read more
iShowU Instant 1.4.14 - Full-featured sc...
iShowU Instant gives you real-time screen recording like you've never seen before! It is the fastest, most feature-filled real-time screen capture tool from shinywhitebox yet. All of the features you... Read more
Geekbench 6.2.0 - Measure processor and...
Geekbench provides a comprehensive set of benchmarks engineered to quickly and accurately measure processor and memory performance. Designed to make benchmarks easy to run and easy to understand,... Read more
Quicken 7.2.3 - Complete personal financ...
Quicken makes managing your money easier than ever. Whether paying bills, upgrading from Windows, enjoying more reliable downloads, or getting expert product help, Quicken's new and improved features... Read more
EtreCheckPro 6.8.2 - For troubleshooting...
EtreCheck is an app that displays the important details of your system configuration and allow you to copy that information to the Clipboard. It is meant to be used with Apple Support Communities to... Read more
iMazing 2.17.7 - Complete iOS device man...
iMazing is the world’s favourite iOS device manager for Mac and PC. Millions of users every year leverage its powerful capabilities to make the most of their personal or business iPhone and iPad.... Read more

Latest Forum Discussions

See All

Motorsport legends NASCAR announce an up...
NASCAR often gets a bad reputation outside of America, but there is a certain charm to it with its close side-by-side action and its focus on pure speed, but it never managed to really massively break out internationally. Now, there's a chance... | Read more »
Skullgirls Mobile Version 6.0 Update Rel...
I’ve been covering Marie’s upcoming release from Hidden Variable in Skullgirls Mobile (Free) for a while now across the announcement, gameplay | Read more »
Amanita Design Is Hosting a 20th Anniver...
Amanita Design is celebrating its 20th anniversary (wow I’m old!) with a massive discount across its catalogue on iOS, Android, and Steam for two weeks. The announcement mentions up to 85% off on the games, and it looks like the mobile games that... | Read more »
SwitchArcade Round-Up: ‘Operation Wolf R...
Hello gentle readers, and welcome to the SwitchArcade Round-Up for September 21st, 2023. I got back from the Tokyo Game Show at 8 PM, got to the office here at 9:30 PM, and it is presently 11:30 PM. I’ve done what I can today, and I hope you enjoy... | Read more »
Massive “Dark Rebirth” Update Launches f...
It’s been a couple of months since we last checked in on Diablo Immortal and in that time the game has been doing what it’s been doing since its release in June of last year: Bringing out new seasons with new content and features. | Read more »
‘Samba De Amigo Party-To-Go’ Apple Arcad...
SEGA recently released Samba de Amigo: Party-To-Go () on Apple Arcade and Samba de Amigo: Party Central on Nintendo Switch worldwide as the first new entries in the series in ages. | Read more »
The “Clan of the Eagle” DLC Now Availabl...
Following the last paid DLC and free updates for the game, Playdigious just released a new DLC pack for Northgard ($5.99) on mobile. Today’s new DLC is the “Clan of the Eagle" pack that is available on both iOS and Android for $2.99. | Read more »
Let fly the birds of war as a new Clan d...
Name the most Norse bird you can think of, then give it a twist because Playdigious is introducing not the Raven clan, mostly because they already exist, but the Clan of the Eagle in Northgard’s latest DLC. If you find gathering resources a... | Read more »
Out Now: ‘Ghost Detective’, ‘Thunder Ray...
Each and every day new mobile games are hitting the App Store, and so each week we put together a big old list of all the best new releases of the past seven days. Back in the day the App Store would showcase the same games for a week, and then... | Read more »
Urban Open-World RPG ‘Project Mugen’ Fro...
Last month, NetEase Games revealed a new free to play open world RPG tentatively titled Project Mugen for mobile, PC, and consoles. I’ve liked the setting and aesthetic since its first trailer, and today’s new video has the Game Designer and... | Read more »

Price Scanner via MacPrices.net

Apple AirPods 2 with USB-C now in stock and o...
Amazon has Apple’s 2023 AirPods Pro with USB-C now in stock and on sale for $199.99 including free shipping. Their price is $50 off MSRP, and it’s currently the lowest price available for new AirPods... Read more
New low prices: Apple’s 15″ M2 MacBook Airs w...
Amazon has 15″ MacBook Airs with M2 CPUs and 512GB of storage in stock and on sale for $1249 shipped. That’s $250 off Apple’s MSRP, and it’s the lowest price available for these M2-powered MacBook... Read more
New low price: Clearance 16″ Apple MacBook Pr...
B&H Photo has clearance 16″ M1 Max MacBook Pros, 10-core CPU/32-core GPU/1TB SSD/Space Gray or Silver, in stock today for $2399 including free 1-2 day delivery to most US addresses. Their price... Read more
Switch to Red Pocket Mobile and get a new iPh...
Red Pocket Mobile has new Apple iPhone 15 and 15 Pro models on sale for $300 off MSRP when you switch and open up a new line of service. Red Pocket Mobile is a nationwide service using all the major... Read more
Apple continues to offer a $350 discount on 2...
Apple has Studio Display models available in their Certified Refurbished store for up to $350 off MSRP. Each display comes with Apple’s one-year warranty, with new glass and a case, and ships free.... Read more
Apple’s 16-inch MacBook Pros with M2 Pro CPUs...
Amazon is offering a $250 discount on new Apple 16-inch M2 Pro MacBook Pros for a limited time. Their prices are currently the lowest available for these models from any Apple retailer: – 16″ MacBook... Read more
Closeout Sale: Apple Watch Ultra with Green A...
Adorama haș the Apple Watch Ultra with a Green Alpine Loop on clearance sale for $699 including free shipping. Their price is $100 off original MSRP, and it’s the lowest price we’ve seen for an Apple... Read more
Use this promo code at Verizon to take $150 o...
Verizon is offering a $150 discount on cellular-capable Apple Watch Series 9 and Ultra 2 models for a limited time. Use code WATCH150 at checkout to take advantage of this offer. The fine print: “Up... Read more
New low price: Apple’s 10th generation iPads...
B&H Photo has the 10th generation 64GB WiFi iPad (Blue and Silver colors) in stock and on sale for $379 for a limited time. B&H’s price is $70 off Apple’s MSRP, and it’s the lowest price... Read more
14″ M1 Pro MacBook Pros still available at Ap...
Apple continues to stock Certified Refurbished standard-configuration 14″ MacBook Pros with M1 Pro CPUs for as much as $570 off original MSRP, with models available starting at $1539. Each model... Read more

Jobs Board

Omnichannel Associate - *Apple* Blossom Mal...
Omnichannel Associate - Apple Blossom Mall Location:Winchester, VA, United States (https://jobs.jcp.com/jobs/location/191170/winchester-va-united-states) - Apple Read more
Cashier - *Apple* Blossom Mall - JCPenney (...
Cashier - Apple Blossom Mall Location:Winchester, VA, United States (https://jobs.jcp.com/jobs/location/191170/winchester-va-united-states) - Apple Blossom Mall Read more
Operations Associate - *Apple* Blossom Mall...
Operations Associate - Apple Blossom Mall Location:Winchester, VA, United States (https://jobs.jcp.com/jobs/location/191170/winchester-va-united-states) - Apple Read more
Retail Key Holder- *Apple* Blossom Mall - Ba...
Retail Key Holder- APPLE BLOSSOM MALL Brand: Bath & Body Works Location: Winchester, VA, US Location Type: On-site Job ID: 03YM1 Job Area: Store: Sales and Support Read more
Omnichannel Associate - *Apple* Blossom Mal...
Omnichannel Associate - Apple Blossom Mall Location:Winchester, VA, United States (https://jobs.jcp.com/jobs/location/191170/winchester-va-united-states) - Apple Read more
All contents are Copyright 1984-2011 by Xplain Corporation. All rights reserved. Theme designed by Icreon.