Instance Method

mutableCopyWithZone:

Returns a new instance that’s a mutable copy of the receiver.

Required.

Declaration

- (id)mutableCopyWithZone:(NSZone *)zone;

Parameters

zone

This parameter is ignored. Memory zones are no longer used by Objective-C.

Discussion

The returned object is implicitly retained by the sender, which is responsible for releasing it. The copy returned is mutable whether the original is mutable or not.

See Also