copy

Returns a copy of the receiver

Declaration

- (id)copy

Return Value

A copy of the receiver.

Overview

NSEntityDescription’€˜s implementation of copy returns an entity such that:

[[entity copy] isEqual:entity] == NO

You should not, therefore, use an entity as a key in a dictionary (see Using Entity Descriptions in Dictionaries).