The Size Resource
features your application supports and how much memory to allocate when it
starts up your application. The following sample code illustrates a
'SIZE' resource:
reserved,
acceptSuspendResumeEvents,
reserved,
canBackground,
doesActivateOnFGSwitch,
backgroundAndForeground,
dontGetFrontClicks,
ignoreAppDiedEvents,
is32BitCompatible,
isHighLevelEventAware,
localAndRemoteHLEvents,
isStationeryAware,
dontUseTextEditServices,
reserved,
reserved,
reserved,
kPrefSize * 1024,
kMinSize * 1024
};
Set up your application's 'SIZE' resource with a resource ID of -1. The user
can change the preferred memory size requested for your application. If the
user does change the memory size, the Finder stores the new size in a 'SIZE' resource with a resource ID of 0. When it launches your application,
the Finder looks first for a 'SIZE' resource with an ID of 0. If it finds none, it uses the 'SIZE' resource with an ID of -1.
Notice that the tenth field, isHighLevelEventAware, tells the Finder that this application supports high-level events. The application must then be able to
actions that the user performs from the desktop.
Notice that the twelfth field, isStationeryAware, tells the Finder that this application supports stationery pads, which are described in