Important: The information in this document is obsolete and should not be used for new development.
MyGetEditMenuState
Color picker-defined subroutine that handles akGetEditMenuStaterequest.If you create a color picker, it must respond to the
kGetEditMenuStaterequest 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 thekGetEditMenuStaterequest 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
MenuStatestructure (page 2-19).DISCUSSION
In theMenuStatestructure pointed to in themStateparameter, yourMyGetEditMenuStatefunction 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
noErrif 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.
 
  
  
 