Enumeration: NSDeleteRule

Overview

These constants define what happens to relationships when an object is deleted.

Constant Summary

NSNoActionDeleteRule

If the object is deleted, no modifications are made to objects at the destination of the relationship. if you use this rule, you are responsible for maintaining the integrity of the object graph. this rule is strongly discouraged for all but advanced users. you should normally use nsnullifydeleterule instead.available in ios 3.0 and later.declared in nsrelationshipdescription.h.

NSNullifyDeleteRule

If the object is deleted, back pointers from the objects to which it is related are nullified.available in ios 3.0 and later.declared in nsrelationshipdescription.h.

NSCascadeDeleteRule

If the object is deleted, the destination object or objects of this relationship are also deleted.available in ios 3.0 and later.declared in nsrelationshipdescription.h.

NSDenyDeleteRule

If the destination of this relationship is not nil, the delete creates a validation error.available in ios 3.0 and later.declared in nsrelationshipdescription.h.