A new instance of the receiver.
レシーバ(受取り手)の新しいインスタンス。
Discussion
解説
The isa instance variable of the new instance is initialized to a data structure that describes the class; memory for all other instance variables is set to 0.
You must use an init... method to complete the initialization process. For example:
例えば:
Do not override allocWithZone: to include any initialization code. Instead, class-specific versions of init... methods.
This method exists for historical reasons; memory zones are no longer used by Objective-C.
このメソッドは歴史的理由から存在します;メモリゾーンはもはやObjective-Cによって使われません。
See Also
参照
Creating, Copying, and Deallocating Objects
オブジェクトの作成、複製、そして割り当て解除
Implemented by subclasses to initialize a new object (the receiver) immediately after memory for it has been allocated.
サブクラスによって実装されて、新しいオブジェクト(レシーバ)を、それのためのメモリが割り当てられた直後に初期化します。