![]() |
Adobe Photoshop SDK |
|
Handle Suite Callbacks The following suite of routines is used primarily for cross-platform support. More...
Detailed DescriptionThe following suite of routines is used primarily for cross-platform support. Although you can allocate handles directly using the Mac OS Toolbox, these callbacks are recommended, instead. When you use these callbacks, Photoshop accounts for these handles in its virtual memory space calculations. In general, the Buffer suite routines are more effective for memory allocation than the Handle suite. The Buffer suite may have access to memory unavailable to the Handle suite. You should use the Handle suite, however, if the data you are managing is a Mac OS handle. Accessing the Suite #define kPSHandleSuite "Photoshop Handle Suite for Plug-ins"
There are two versions of the Handle suite: #define kPSHandleSuiteVersion1 1 #define kPSHandleSuiteVersion2 2 The suite is acquired as follows: PSHandleSuite2 *sPSHandle; // Acquire the most recent version. error = sSPBasic->AcquireSuite(kPSHandleSuite, kPSHandleSuiteVersion2, &sPSHandle); if (error) goto . . . //handle error For PICA errors, see SPErrorCodes.h. Define Documentation
Unique identifier for the Handle Suite.
Handle suite, version 1.
Handle suite, version 2. Typedef Documentation
Locks or unlocks the handle, depending on the value of the
|