An example of how easy CPLAT_MacOS II makes it to handle commands is shown below. The example is taken from the CP_Graphics demo.
CP_Graphics_Application::CP_Graphics_Application() { CPLAT_MacOS::CP_RegisterCommand( kCP_Graphics_ShapesCommand, CPLAT_MacOS::CP_Command::CP_E_CH_AlwaysEnable)->connect( CPLAT_MacOS::CP_SigSlot::slot(this, &CP_Graphics_Application::HandleShapes) ); CPLAT_MacOS::CP_RegisterCommand( kCP_Graphics_PathsCommand, CPLAT_MacOS::CP_Command::CP_E_CH_AlwaysEnable)->connect( CPLAT_MacOS::CP_SigSlot::slot(this, &CP_Graphics_Application::HandlePaths) ); CPLAT_MacOS::CP_RegisterCommand( kCP_Graphics_ImagesCommand, CPLAT_MacOS::CP_Command::CP_E_CH_AlwaysEnable)->connect( CPLAT_MacOS::CP_SigSlot::slot(this, &CP_Graphics_Application::HandleImages) ); }