func validateValue (AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey : String)
A pointer to a new value for the property identified by in
. This method may modify or replace the value in order to make it valid.
Availability
Technology
func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer
<AnyObject?>,
forKeyPath inKeyPath: String
) throws
ioValue
A pointer to a new value for the property identified by in
. This method may modify or replace the value in order to make it valid.
inKeyPath
The name of one of the receiver's properties. The key path must specify an attribute or a to-one relationship. The key path has the form relationship
.
property
(with one or more relationships); for example department
or department
.
A Boolean that is true
if the value pointed at by io
is valid for the property identified by in
, or if the method is able to modify the value at io
to make it valid; otherwise false
.
The default implementation of this function gets the destination instance for each relationship using value(for
and then calls the validate
function for the property. The outcome of that call determines whether this one throws an error or not.
func validateValue (AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey : String)