![]() |
Carbon supports many of the accessor functions for low-memory variables. However, you should always avoid using low-memory accessors if there are direct Mac OS Toolbox calls to obtain the same information. For example:
Use the function TickCount instead of the low-memory accessor function LMGetTicks.
Use the function FrontWindow instead of the low-memory accessor function LMGetWindowList, when possible.
Use the function PBGetFCBInfo instead of walking the FCB table with the low-memory accessor function LMGetFCBSPtr.
In general, dont think of the values returned by low-memory accessor routines as residing in low memorythink of them as information, possibly associated with a specific Toolbox manager, that is returned by the Mac OS. In the future, Apple may supply new functions, distributed among the Mac OS Toolbox managers, for retrieving this information.
Some low-memory accessor functions are obsolete in Mac OS X. The following Resource Manager-related functions are not supported:
LMGetTopMapHndl and LMSetTopMapHndl
LMGetSysMapHndl and LMSetSysMapHndl
LMGetCurMapHndl and LMSetCurMapHndl
© 2000 Apple Computer, Inc. (Last Updated 6/29/2000)