I'm using objects for keys in a dictionary and want the dictionary
to observe dealloc invocations on these keys so it can update it's
contents. Is there any way to observe calls to an object's dealloc
method?
You have two issues. 1) NSDictionary copies keys that you use and 2)
NSDictionary holds a retain on those keys (related to issue 1). So
dealloc will not get called.
Can you better describe the problem you are trying to solve?