com.webobjects.foundation
Interface NSDisposable
- All Known Implementing Classes: 
- EOActionAssociation, EOActionButtonsController, EOActionController, EOActionInsertionAssociation, EOActionMenuController, EOActionTrigger, EOActionWidgetAssociation, EOActionWidgetAssociation.ActionPlugin, EOActionWidgetController, EOAppletController, EOApplication, EOArchiveController, EOAssociation, EOAssociationController, EOBoxController, EOCheckBoxController, EOComboBoxController, EOComponentController, EOControlActionAdapter, EOController, EOControllerFactory, EOCooperatingObjectStore, EODatabase, EODatabaseContext, EODefaultActionTrigger, EODefaults, EODetailSelectionAssociation, EODetailSelectionController, EODialogController, EODisplayGroup, EODisplayStatisticsController, EODistributedObjectStore, EODistributionContext, EODocumentController, EODynamicApplication, EOEditingContext, EOEditingController, EOEntityController, EOEnumerationController, EOForm, EOFormatValueController, EOFormCell, EOFormController, EOFrame, EOFrameController, EOImageViewController, EOInspectorController, EOInterfaceController, EOListController, EOMasterAssociation, EOMasterCopyAssociation, EOMasterDetailAssociation, EOMasterPeerAssociation, EOMatrix, EOMenuSwitchController, EOModalDialogController, EOModel, EOMultipleValuesEnumerationController, EOObjectStore, EOObjectStoreCoordinator, EOOneValueEnumerationController, EOPickTextAssociation, EOProgrammaticSwitchController, EOQueryController, EOQuickTimeViewController, EORangeTextFieldController, EORangeValueController, EORangeWidgetController, EORemoteStorageDefaults, EOSharedEditingContext, EOSimpleWindowController, EOSplitController, EOStaticIconController, EOStaticLabelController, EOStaticTextFieldController, EOSwingButtonPlugin, EOSwingCheckBoxPlugin, EOSwingComboBoxPlugin, EOSwingImageViewPlugin, EOSwingQuickTimeViewPlugin, EOSwingTableColumnPlugin, EOSwingTablePlugin, EOSwingTextPlugin, EOSwingTreePlugin, EOSwitchController, EOTable, EOTableAssociation, EOTableAssociation.TablePlugin, EOTableColumnAssociation, EOTableColumnAssociation.TableColumnPlugin, EOTableColumnController, EOTableController, EOTabSwitchController, EOTextAreaController, EOTextAssociation, EOTextAssociation.TextPlugin, EOTextFieldController, EOTitlesController, EOTreeAssociation, EOTreeAssociation.TreePlugin, EOTreeController, EOUserFileDefaults, EOValueAndURLController, EOValueAssociation, EOValueAssociation.ValuePlugin, EOValueController, EOValueSelectionAssociation, EOValueSelectionAssociation.ValueSelectionPlugin, EOView, EOWidgetAssociation, EOWidgetAssociation.WidgetPlugin, EOWidgetController, EOWindowController, EOWindowObserver, NSDisposableRegistry, NSUndoManager, WODisplayGroup
- public interface NSDisposable 
The NSDisposable interface declares one method, dispose, in
 which an object prepares for destruction. In dispose, an object
 should clear all references that other objects have to it. For
 example, if an NSDisposable object has assigned itself as
 another object's delegate, the NSDisposable object should set
 the other object's delegate to null in dispose,
 thus clearing the other object's reference to the NSDisposable object.
 By implementing NSDisposable, objects are given a chance
 to remove references that other objects have to them. This
 allows other objects to send dispose messages to NSDisposable
 objects when the NSDisposable objects are no longer needed. As
 an example, Direct to Java Client disposes of controllers when
 they are no longer needed, and subsequently, the NSDisposable
 controllers are garbage collected.
 
Guidelines
 You should implement NSDisposable if your object is a delegate for
 another object. If you do implement NSDisposable, you should be sure
 that your dispose method will be invoked. If it won't be invoked
 automatically, you can add yourself to an appropriate NSDisposableRegistry.
 Known registries are provided by the com.webobjects.eoapplication
 classes EOController and EOArchive.
- See Also:
- NSDisposable.dispose(),- NSDisposableRegistry
| Method Summary | 
|  void | dispose()Invoked when the receiver should prepare itself for destruction.
 | 
 
dispose
void dispose()
- Invoked when the receiver should prepare itself for destruction.
 Implementations of this method should break connections that
 other objects have to the receiver, including unregistering for
 notifications, resigning as other objects' delegates, release locks and system resources, close files, and any other
 clean up operations.
 
- 
 
Copyright © 2000-2008 Apple Inc.