How to add alive object to NSMutableArray and remove them when they're released?
问题 I have class Item and class List (which has an NSMutableArray). Every time class Item is instantiated (and destroyed) it posts a notification, which is listened-to by class List. When class List receives the notification is adds the instance of class Item to its list. I'm trying to have class Item also post a notification that its about to be dealloc'd. The problem is that class List's NSMutableArray retains the instance of class Item. What's the most appropriate means of handling this