Documentation Archive Developer
Search
PATH  Documentation > WebObjects 4.5 > EOControl Reference

Table of Contents

EOClassDescription ClassDelegate


(informal protocol)
Declared in:
EOControl/EOClassDescription.h



Protocol Description


The EOClassDescription ClassDelegate informal protocol defines a method that the EOClassDescription class can invoke in its delegate. Delegates are not required to provide an implementation for the method. Instead, declare and implement the method if you need it, and use the EOClassDescription method setClassDelegate: method to assign your object as the class delegate. The EOClassDescription class can determine if the delegate doesn't implement the delegate method and only attempts to invoke it if it's actually implemented.



Instance Methods



shouldPropagateDeleteForObject:inEditingContext:forRelationshipKey:

- (BOOL)shouldPropagateDeleteForObject:(id)anObject inEditingContext:(EOEditingContext *)anEditingContext forRelationshipKey:(NSString *)key

Invoked from propagateDeleteForObject:editingContext:. If the class delegate returns NO, it prevents anObject in anEditingContext from propagating deletion to the objects at the destination of key. This can be useful if you have a large model and a small application that only deals with a subset of the model's entities. In such a case you might want to disable delete propagation to entities that will never be accessed. You should use this method with caution, however-returning NO and not propagating deletion can lead to dangling references in your object graph.


Table of Contents