MonobjcMonobjc Documented Class Library
NSDeleteRule Enumeration
NamespacesMonobjc.CoreDataNSDeleteRule

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

Available in Mac OS X v10.4 and later.

Declaration Syntax
C#Visual BasicVisual C++
public enum NSDeleteRule
Public Enumeration NSDeleteRule
public enum class NSDeleteRule
Members
MemberDescription
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 Mac OS X v10.4 and later.


NSNullifyDeleteRule

If the object is deleted, back pointers from the objects to which it is related are nullified.

Available in Mac OS X v10.4 and later.


NSCascadeDeleteRule

If the object is deleted, the destination object or objects of this relationship are also deleted.

Available in Mac OS X v10.4 and later.


NSDenyDeleteRule

If the destination of this relationship is not nil, the delete creates a validation error.

Available in Mac OS X v10.4 and later.


Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)