Memory management regular expression search for Cocoa

January 15, 2007

From Domain of the Bored:

/^retain$|^(alloc|new)|[cC]opy/

ObjectAlloc can be a useful tool for detecting memory leaks, but a simple search is just as good (and probably easier) for catching the really stupid memory management mistakes. (via CocoaBlogs)

Marc Charbonneau is a mobile software engineer in Portland, OR. Want to reply to this article? Get in touch on Twitter @mbcharbonneau.