Carbon


Gestalt Manager

Carbon fully supports the Gestalt Manager. However, the results returned by Gestalt functions on Mac OS X are relevant only to your application's context. You should not use Gestalt functions to pass pointers to data among applications because each Carbon application resides in its own protected memory space in Mac OS X.

For compatibility with Mac OS X, you should avoid using the NewGestalt function to add a selector code, which requires moving your selector function into the system heap. You should also avoid using the ReplaceGestalt function to replace an existing selector function, which also requires your replacement function to reside in the system heap. Applications do not have access to the system heap in Mac OS X.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)