Uses type info from the class description and NSScript
to attempt to convert value
for key
to the proper type, if necessary.
SDK
- macOS 10.0+
Framework
- Foundation
Declaration
func coerceValue(_ value: Any?, forKey key: String) -> Any?
Discussion
The method coerce
is used if it exists.