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: Cyberdog Programmer's Kit / Part 3 - Cyberdog Reference
Chapter 7 - Classes and Methods / SimpleCyberService


DoMenuItemSelected

Performs the selected menu command.

void DoMenuItemSelected (in long index, 
in ODFrame frame, 
in CyberMenuData menuData);
index
The zero-based index of the command.
frame
The frame associated with the menu event.
menuData
A pointer to the service's menu data.
DISCUSSION
This method is called by the SimpleCyberService override of the DoCyberMenuCommand method to perform the selected menu command. The value specified by index should be in the range 0...(numitems - 1), where numitems is the number of menu items the service defines.

If you subclass SimpleCyberService and your service has menu commands, your subclass should override DoMenuItemSelected.

If you subclass SimpleCyberService and override this method, your override must not call its inherited method; that is, your override method must implement this method's functionality completely.

SEE ALSO
The CyberService::DoCyberMenuCommand method (page 335).


Previous Book Contents Book Index Next

© Apple Computer, Inc.
13 JUL 1996