Important: The information in this document is obsolete and should not be used for new development.
SimpleCyberService
An object of the
- Superclasses
CyberService
- Subclasses
- none
SimpleCyberService
class represents a simple implementation of a service.Description
TheSimpleCyberService
class provides a simple, resource-driven implementation of a Cyberdog service.SimpleCyberService
is a fully implemented class that you can use as is or subclass. It overrides every method ofCyberService
except forCyberMenuFocusAcquired
andCyberMenuFocusLost
.SimpleCyberService
has one method that is not an override of aCyberService
method,DoMenuItemSelected
.The
SimpleCyberService
override of theICyberService
method reads and caches data from the various resources referenced by the'srvc'
resource; the otherSimpleCyberService
overrides use those cached values. For a description of the format of the'srvc'
resource, see (page 177). The fileCyberService.r
contains an example of the'srvc'
format.The only
SimpleCyberService
behavior that is not fully implemented is the handling of menu item selections. TheSimpleCyberService
object appends each of the strings specified in the menu'STR#'
resource to the Cyberdog menu, registers each menu item with the menu bar, and enables each menu item. When one of the service's menu items is selected, Cyberdog calls theSimpleCyberService
override of theDoCyberMenuCommand
method, which translates the menu command ID into a index and calls theDoMenuItemSelected
method.Methods
TheSimpleCyberService
class has a single method,DoMenuItemSelected
. A detailed description of the method follows.
DoMenuItemSelected
- Performs the selected menu command.
Methods
- DoMenuItemSelected