Instance Method

coerceValue:forKey:

Uses type info from the class description and NSScriptCoercionHandler to attempt to convert value for key to the proper type, if necessary.

Declaration

- (id)coerceValue:(id)value forKey:(NSString *)key;

Discussion

The method coerceValueFor<Key>: is used if it exists.