Instance Method インスタンスメソッド

copyWithZone:

Returns a new instance that’s a copy of the receiver. 新しいインスタンスを返します、それはレシーバの複製です。

Declaration 宣言

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

Parameters パラメータ

zone

This parameter is ignored. Memory zones are no longer used by Objective-C. このパラメータは無視されます。メモリゾーンは、もはやObjective-Cによって使われません。

Discussion 議論

The returned object is implicitly retained by the sender, who is responsible for releasing it. The copy returned is immutable if the consideration “immutable vs. mutable” applies to the receiving object; otherwise the exact nature of the copy is determined by the class. 返されるオブジェクトは、それを解放する責任を持つ送り手によって暗黙的に保有されます。返される複製は不変です、もし “不変 vs 可変” の検討が受け取っているオブジェクトに適用されるならば;そうでなければ複製の正確な性質はクラスによって決定されます。

See Also 参照

Related Documentation 関連文書