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 / CyberService


DoCyberMenuCommand

Performs a menu command.

ODBoolean DoCyberMenuCommand (in long commandID, 
in ODFrame frame,
in long baseCommandID, 
in CyberMenuData menuData);
commandID
The command ID of the menu item.
frame
The frame that has the menu focus.
baseCommandID
The Cyberdog service menu object's base command ID for service-related commands.
menuData
A pointer to the service's menu data.
return value
kODTrue if the menu command was handled; otherwise, kODFalse.
DISCUSSION
When a display part has the menu focus and the user selects a menu command, the part's HandleMenuEvent method calls the Cyberdog service menu object's DoCommand method, which, in turn, calls this method.

If you subclass CyberService 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 AppendCyberMenuCommands method (page 332).
The CyberServiceMenu::DoCommand method (page 343).


Previous Book Contents Book Index Next

© Apple Computer, Inc.
13 JUL 1996