Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Advanced Color Imaging Reference /
Chapter 2 - Color Picker Manager Reference /
Color Picker-Defined Functions / Responding to Requests to Return and Set Color Picker Information


MyGetEditMenuState

Color picker-defined subroutine that handles a kGetEditMenuState request.

If you create a color picker, it must respond to the kGetEditMenuState request code. The Color Picker Manager sends this code to request information about the desired state of the Edit menu for your color picker. A color picker responds to the kGetEditMenuState request code by calling a color picker-defined subroutine (for example, MyGetEditMenuState) to handle the request.

pascal ComponentResult MyGetEditMenuState (
PickerStorageHndl storage,
MenuState *mState);
storage
A handle to your color picker's global data.
mState
A pointer to a MenuState structure (page 2-19).
DISCUSSION
In the MenuState structure pointed to in the mState parameter, your MyGetEditMenuState function should return information about your color picker's Edit menu. The Color Picker Manager sets the Edit menu to this state.

Your function should return noErr if successful, or an appropriate result code otherwise.

SEE ALSO
Listing 2-31 (page 2-46) in Advanced Color Imaging on the Mac OS illustrates how to implement this function.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 NOV 1996