|
From: | Lloyd Dupont |
Subject: | Zombie tracking.... |
Date: | Tue, 11 Apr 2006 14:21:01 +1000 |
What I would like to do is write a DebugObject which will poseAs: NSObject and when it is deallocated replace all its instance method pointer by an IMP of my making (which would, basicall, trace illegal call).
Any hint on how I could do that.Constructing a fake isa pointer being a bit difficult I wonder if someone could provide me some example doing just that. Ideally I neek this fake isa pointer to feature the same instance method pointer as the original, except they would all point to a method of my own making.
[Prev in Thread] | Current Thread | [Next in Thread] |