TAGFunctionCallMacroHandler Protocol Reference
Overview
A protocol implemented by the application to calculate the value of a function call macro.
Public Member Functions | |
(id) | - valueForMacro:parameters: |
Returns an object which is the calculated value of the macro. |
Member Function Documentation
- (id) valueForMacro: | (NSString *) | macroName | |
parameters: | (NSDictionary *) | parameters | |
Returns an object which is the calculated value of the macro.
Handler is given the macro name and a dictionary of named parameters.
- Parameters:
-
macroName The same name by which the handler was registered. It is provided as a convenience to allow a single handler to be registered for multiple function call macros. parameters The named parameters for the function call. The dictionary may contain NSString
,NSNumber
(double, int, or boolean),NSDictionary
, orNSArray
.
- Returns:
- The evaluated result, which can be an
NSString
orNSNumber
.