Instance Method


Returns a Boolean value that indicates whether auto-expanded items should return to their original collapsed state.


- (BOOL)shouldCollapseAutoExpandedItemsForDeposited:(BOOL)deposited;



If YES, the drop terminated successfully; if NO the drop failed.

Return Value

YES if auto-expanded items should return to their original collapsed state; otherwise NO.


Override this method to provide custom behavior. If the target of a drop is not auto-expanded (by hovering long enough) the drop target still gets expanded after a successful drop unless this method returns YES. The default implementation returns NO after a successful drop.

This method is called in a variety of situations. For example, it is called shortly after the outlineView:acceptDrop:item:childIndex: method is called and also if the drag exits the outline view (exiting the view is treated the same as a failed drop). The return value of the outlineView:acceptDrop:item:childIndex: method determines the incoming value of the deposited parameter.

See Also

Supporting Drag and Drop

- setDropItem:dropChildIndex:

Used to “retarget” a proposed drop.