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, or NSArray.
Returns:
The evaluated result, which can be an NSString or NSNumber.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-09 UTC."],[[["The `TAGFunctionCallMacroHandler` protocol allows applications to compute the value of a function call macro."],["It involves a single method, `valueForMacro:parameters:`, which takes the macro name and parameters as input."],["This method returns the calculated value of the macro as either an `NSString` or `NSNumber`."],["Developers can register a single handler for multiple function call macros, leveraging the provided `macroName` for differentiation."],["Input parameters can include various data types like `NSString`, `NSNumber`, `NSDictionary`, and `NSArray`, offering flexibility in macro definitions."]]],["The `TAGFunctionCallMacroHandler` protocol is implemented by an application to compute the value of a function call macro. It has one public method: `valueForMacro:parameters:`. This method receives the macro's name and a dictionary of parameters. The parameters can be strings, numbers, dictionaries, or arrays. The method returns the evaluated macro result, which can be a string or a number. A single handler can be registered for multiple function call macros.\n"]]