Instance Method

invokeUndefinedMethodFromWebScript:withArguments:

Handles undefined method invocation from the scripting environment.

Declaration

- (id)invokeUndefinedMethodFromWebScript:(NSString *)name withArguments:(NSArray *)arguments;

Parameters

name

The name of the undefined method.

args

The arguments passed to the undefined method.

Return Value

The result of invoking the undefined method.

Discussion

This method is invoked when a script attempts to invoke a method not directly exported to the scripting environment. You should return the result of the invocation, converted appropriately for the scripting environment.

See Also

Invoking methods

- invokeDefaultMethodWithArguments:

Executes when a script attempts to invoke a method on an exposed object directly.