Contents

useStoredAccessor()

Returns true if the stored value methods Storedvalue(forkey:) and Takestoredvalue(_:forkey:) should use private accessor methods in preference to public accessors.

Declaration

class func useStoredAccessor() -> Bool

Discussion

Returning NO causes the stored value methods to use the same accessor method or instance variable search order as the corresponding basic key-value coding methods (value(forKey:) and takeValue(_:forKey:)). The default implementation returns YES.

Applications should use the valueForKey: and setValue:forKey: methods instead of storedValueForKey: and takeStoredValue:forKey:.

See Also

Deprecated Class Methods