- 628 名前:名称未設定 mailto:sage [2009/03/15(日) 01:57:34 ID:2Ipvh/SI0]
- 便乗して質問
- (void)dealloc { [image release]; [super dealloc]; } てのと - (void)dealloc { [image release]; image = nil; [super dealloc]; } てのはどのへんが変わってきますか? あと @property (retain) NSImage *image; とした時、 - (void)dealloc { self.image = nil; [super dealloc]; } というのはダメで、dealloc内ではreleaseが呼ばれないので - (void)dealloc { [image release]; [super dealloc]; } しないといけないとネットで見ました。これを解説してるAppleのドキュメントとかってありますでしょうか?
|

|