Contents

copyWithZone:

Returns the receiver.

Declaration

+ (id) copyWithZone:(struct _NSZone *) zone;

Parameters

  • zone:

    This argument is ignored.

Return Value

The receiver.

Discussion

This method exists so class objects can be used in situations where you need an object that conforms to the NSCopying protocol. For example, this method lets you use a class object as a key to an NSDictionary object. You should not override this method.

See Also

Creating, Copying, and Deallocating Objects