Contents

getObjectValue(_:for:errorDescription:)

This method is not supported for the NSLengthFormatter class.

Declaration

func getObjectValue(_ obj: AutoreleasingUnsafeMutablePointer<AnyObject?>?, for string: String, errorDescription error: AutoreleasingUnsafeMutablePointer<NSString?>?) -> Bool

Parameters

  • obj:

    An output parameter. If overridden, this parameter should contain the object created from the provided string.

  • string:

    A string representation of the object.

  • error:

    An output parameter. If overridden, this parameter should contain a description of any errors that occur. If you do not want to receive error messages, set this parameter to NULL.

Return Value

true if the conversion from string was successful; otherwise, false.

Discussion

You can override this method in a subclass. For more information, see Formatter.

See Also

Related Documentation

Formatting Length Strings