lotus



previous page: 9.2) How do I fat-patch a trap (that is, how do I patch a trap with both 68k and PPC code)? (Standalone Code & Trap Patching - Mac Programming)
  
page up: Mac Programming FAQ
  
next page: 10.2) What more functions are implemented in glue? (Compatibility - Mac Programming)

10.1) I see all these people call Gestalt without first checking whether it's implemented. Isn't that bad? (Compatibility - Mac Programming)




Description

This article is from the Mac Programming FAQ, by Jon Watte h+@austin.metrowerks.com with numerous contributions by others.

10.1) I see all these people call Gestalt without first checking whether it's implemented. Isn't that bad? (Compatibility - Mac Programming)

No; Gestalt and a few other traps (the HXxx file manager
traps, and FindFolder) are implemented using glue so they do the
right thing even if the trap is not implemented.

If you want to get rid of the glue, you can #define
SystemSevenOrLater (and, using Think C/C++, re-pre-compile
MacHeaders) However, then you will be responsible for checking
for these features before you use them.

 

Continue to:















TOP
previous page: 9.2) How do I fat-patch a trap (that is, how do I patch a trap with both 68k and PPC code)? (Standalone Code & Trap Patching - Mac Programming)
  
page up: Mac Programming FAQ
  
next page: 10.2) What more functions are implemented in glue? (Compatibility - Mac Programming)