• MacTech Network:
  • Tech Support
  • |
  • MacForge.net
  • |
  • Apple News
  • |
  • Register Domains
  • |
  • SSL Certificates
  • |
  • iPod Deals
  • |
  • Mac Deals
  • |
  • Mac Book Shelf

MAC TECH

  • Home
  • Magazine
    • About MacTech in Print
    • Issue Table of Contents
    • Subscribe
    • Risk Free Sample
    • Back Issues
    • MacTech DVD
  • Archives
    • MacTech Print Archives
    • MacMod
    • MacTutor
    • FrameWorks
    • develop
  • Forums
  • News
    • MacTech News
    • MacTech Blog
    • MacTech Reviews and KoolTools
    • Whitepapers, Screencasts, Videos and Books
    • News Scanner
    • Rumors Scanner
    • Documentation Scanner
    • Submit News or PR
    • MacTech News List
  • Store
  • Apple Expo
    • by Category
    • by Company
    • by Product
  • Job Board
  • Editorial
    • Submit News or PR
    • Writer's Kit
    • Editorial Staff
    • Editorial Calendar
  • Advertising
    • Benefits of MacTech
    • Mechanicals and Submission
    • Dates and Deadlines
    • Submit Apple Expo Entry
  • User
    • Register for Ongoing Raffles
    • Register new user
    • Edit User Settings
    • Logout
  • Contact
    • Customer Service
    • Webmaster Feedback
    • Submit News or PR
    • Suggest an article
  • Connect Tools
    • MacTech Live Podcast
    • RSS Feeds
    • Twitter

ADVERTISEMENT
Volume Number:8
Issue Number:2
Column Tag:Mousehole

Mousehole

By Larry Nedry, MacTutor Regular Contributing Author

From: Scottab

Re: Palette Animation

The difference is in indexed vs. direct color. Indexed color uses as an index into a clut to determine what color to display for a certain pixel. Thus, changing the clut changes every pixel of that color on screen. Direct color (24 or 32 bit, and 16 bit, I believe) has no clut: the computer stores the RGB values for each pixel. Which is why palette animation in 16, 24, or 32 bits of monitor depth does not exist.

From: Jslee

Re: STR replacement

I found a series of Pascal routines that can replace/delete/add STR and STR# resources. I am converting it to C. So far I have the add function working pretty well, now on to the other functions. When I get it done I will upload the code. BTW, it is using Munger for all of the replacement stuff. I still have to manually change the number of STR# resources so that the file can be read by ResEdit (if you do not change the number of strings in the STR# resource an error will occur and ResEdit will politely remove the extraneous STR's for you).

From: Jslee

Re: SetIndStr.SIT

The file is attached to this reply. I converted someone's Pascal code into C. I will give them credits later. I could not think of an EASY way to delete STR# resources so I decided that if you wanted to delete a particular resource you should pass the negative of its id (so if you wanted to delete STR# 128 you would pass -128 to my routine). I know this is

not the easiest or the best way to do this so any suggestions would be appreciated.

From: Bonhoffer

Re: Memerror code

I was using Think 3 and after calling a memory manager routine like ReallocHandle, I got a MemError of -113. I could not find this code in IM or any where else. Does anybody know what this means?

From: Sysop

Re: Memerror code

There is a Desk Accessory in the System File LIB called System Errors Table that has all of the known system errors in an easy to read format.

You can also look in Errors.h or Errors.p. Error -113 is the memAZErr - Address in zone check failed

From: Bonhoffer

Re: Memerror code

Does that mean that it was in Inside Mac and I didn't find it or are there error codes that are not in IM I-V?

If I bought Think Reference, do you think that they would be easily referenced from there as well?

From: Sysop

Re: Memerror code

The Think Reference is one way you could have found your answer.

There is an amazing amount of information available in the language interface files (*.h, *.p and *.a). Do a little exploring in them sometime if you can't find your answer elsewhere.

But I use Think Reference religiously. It is much easier and faster to use than any other product I have seen including Inside Mac.

From: Megabozo

Re: New Apple adverts

Has anyone seen the new Apple commercials on the telly? (You know, the ones with the guys riding the coal car.) The tag line is 'Introducing the new technology'. Can someone more knowledgeable tell me, does this portend the announcement of a new computer (perhaps the long-awaited notebook Mac)? Or is Apple just baying at the moon? Also, does anyone know anything about the new CRAY Y-MP?

From: Badblud

To: ** ALL **

Re: INITs (1 reply)

Hi, I'm looking for source code to various type of INITs. I've seen some really nice stuff, you know, Public Folder or Broadcast. I will need to set parameters in the Chooser or the Control panel. The main part of the program will wait on the serial port for special characters.

I would like to mention this is not for a commercial product, but a university research project.

From: Sysop

To: Badblud

Re: INITs

Check out Morse.C in the Language File Library. It is an example of an INIT/cdev combination.

From: Sysop

To: Atom

Re: registering ZTerm (1 reply)

The address to register ZTerm is: David P. Alverson, 5635 Cross Creek Court, Mason, OH 45040

 
MacTech Only Search:
Community Search:

 
 
 

 
 
 
 
 
  • SPREAD THE WORD:
  • Slashdot
  • Digg
  • Del.icio.us
  • Reddit
  • Newsvine
  • Generate a short URL for this page:



MacTech Magazine. www.mactech.com
Toll Free 877-MACTECH, Outside US/Canada: 805-494-9797
MacTech is a registered trademark of Xplain Corporation. Xplain, "The journal of Apple technology", Apple Expo, Explain It, MacDev, MacDev-1, THINK Reference, NetProfessional, Apple Expo, MacTech Central, MacTech Domains, MacNews, MacForge, and the MacTutorMan are trademarks or service marks of Xplain Corporation. Sprocket is a registered trademark of eSprocket Corporation. Other trademarks and copyrights appearing in this printing or software remain the property of their respective holders.
All contents are Copyright 1984-2010 by Xplain Corporation. All rights reserved. Theme designed by Icreon.
 
Nov. 20: Take Control of Syncing Data in Sow Leopard' released
Nov. 19: Cocktail 4.5 (Leopard Edition) released
Nov. 19: macProVideo offers new Cubase tutorials
Nov. 18: S Stardom anounces Safe Capsule, a companion piece for Apple's
Nov. 17: Ableton releases Max for Live
Nov. 17: Ableton releases Max for Live
Nov. 17: Ableton releases Max for Live
Nov. 17: Ableton releases Max for Live
Nov. 17: Ableton releases Max for Live
Nov. 17: Ableton releases Max for Live
Nov. 17: Ableton releases Max for Live
Nov. 17: Ableton releases Max for Live
Nov. 17: Ableton releases Max for Live
Nov. 17: Ableton releases Max for Live