Created
January 3, 2014 22:47
-
-
Save phausler/8248182 to your computer and use it in GitHub Desktop.
NSGenericDeallocHandler for tracking when objects die
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extern void _NSSetDeallocHandler(id object, void (^block)(void)); | |
_NSSetDeallocHandler(someObject, ^{ | |
NSLog(@"someObject was deallocated"); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment