Removes the specified object from the tree, using a reference to its containing node.
- iOS 10.0+
- macOS 10.12+
- Mac Catalyst 13.0+
- tvOS 10.0+
The object to be removed from the tree.
The node in the tree containing the object.
true if the object was removed from the tree.
false if the specified object or node is not in the tree.
By referencing the node that contains the object to remove, this method can quickly remove an object from the tree without needing to perform an exhaustive search. To make use of this performance optimization, keep a reference to the node returned when you add elements with the