@protocol BDPDeepCopy <NSObject>

@brief An object which may be deep copied.

Whereas the NSCopying Protocol is typically used to define shallow copying; @ref BDPDeepCopy specifies a copying method that must return a deep-copy. That is, an entirely new object graph which is identical to the receiver and its referenced objects.

There may be application specific exceptions to this definition, for example where those referenced objects are singletons.

See For a fuller explanation of deep vs. shallow copying
  • @returns a deep-copy of this object.



    - (id)deepCopy;