free or release
分からないことリスト消化。alloc した Object の解放は free で行う。
そもそも Object には release っていうメソッドが無い。一方 NSObject には release が存在するが、free が無い。
objc/Object.h より抜粋
@interface Object { Class isa; /* A pointer to the instance's class structure */ } /* Initializing classes and instances */ + initialize; - init; /* Creating, copying, and freeing instances */ + new; + free; - free; + alloc; - copy;
よく見たら new っちゅーのもありますね。これは何じゃ。alloc とは違うんか??