Instance Property


The default value of the attribute.


var defaultValue: Any? { get set }


Default values are retained by a managed object model, not copied. This means that attribute values do not have to implement the NSCopying protocol, however it also means that you should not modify any objects after they have been set as default values.

Special Considerations

Setting the default value raises an exception if the receiver’s model has been used by an object graph manager.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software