Archives
 
 
 
  Special
 
 
 
  About Us
 
 
 

Newsletter
Free E-mail Newsletter from BYTE.com

 
    
           
Visit the home page Browse the four-year online archive Download platform-neutral CPU/FPU benchmarks Find information for advertisers, authors, vendors, subscribers Request free information on products written about or advertised in BYTE Submit a press release, or scan recent announcements Talk with BYTE's staff and readers about products and technologies

ArticlesA Must for Mac Programmers


March 1996 / Book and CD-ROM Reviews / A Must for Mac Programmers
Tom Thompson

A FRAGMENT OF YOUR IMAGINATION by Joe Zobkiw, Addison-Wesley, ISBN 0-201-48358-0, $39.95

This is the best programming book for PowerPC-based Macs I've seen to date. It discusses in great detail how to use code fragments, those basic code resources of the Power Mac OS. The book starts with a description of the various species of code fragments (e.g., private and accelerated) and when you use them. It mentions how they can appear as "fat resources," which are code resources composed of both 680x0 and PowerPC code, and can thus run on any Mac.

Such information demands lots of source code examples to illustrate the concepts, and Joe Zobkiw doesn't disappoint. Sample code is provided that illustrates how to write fragments that are plug-in modules for Adobe Photoshop and others that add functions to HyperCard (XCMDs). Trap patching is explained, along with code that implements a "fat trap," a patch made of 680x0 and PowerPC code. Finally, there are examples of writing resources that implement custom dialog box controls (CDEFs), lists (LDEVs), and windows (WDEFs).

This sort of information is scarce and difficult to find, and it's nice to see it, along with useful source code, under one cover. Best of all, A Fragment of Your Imagination fulfills my "no toy programs" requirement. That is, most of the supplied sample code accomplishes practical tasks. The CDEF sample implements a slider, which is one of the most difficult items to program because of the way the code must respond to the user's actions. All in all, this book is a great resource for anyone doing serious programming on a Power Mac.


Up to the Book and CD-ROM Reviews section contentsGo to previous article: Go to next article: Do It Off-LineSearchSend a comment on this articleSubscribe to BYTE or BYTE on CD-ROM  
Flexible C++
Matthew Wilson
My approach to software engineering is far more pragmatic than it is theoretical--and no language better exemplifies this than C++.

more...

BYTE Digest

BYTE Digest editors every month analyze and evaluate the best articles from Information Week, EE Times, Dr. Dobb's Journal, Network Computing, Sys Admin, and dozens of other CMP publications—bringing you critical news and information about wireless communication, computer security, software development, embedded systems, and more!

Find out more

BYTE.com Store

BYTE CD-ROM
NOW, on one CD-ROM, you can instantly access more than 8 years of BYTE.
 
The Best of BYTE Volume 1: Programming Languages
The Best of BYTE
Volume 1: Programming Languages
In this issue of Best of BYTE, we bring together some of the leading programming language designers and implementors...

Copyright © 2005 CMP Media LLC, Privacy Policy, Your California Privacy rights, Terms of Service
Site comments: webmaster@byte.com
SDMG Web Sites: BYTE.com, C/C++ Users Journal, Dr. Dobb's Journal, MSDN Magazine, New Architect, SD Expo, SD Magazine, Sys Admin, The Perl Journal, UnixReview.com, Windows Developer Network