Major Bug in Cocoa (With sample Code!!)
Major Bug in Cocoa (With sample Code!!)
- Subject: Major Bug in Cocoa (With sample Code!!)
- From: Steve Gehrman <email@hidden>
- Date: Thu, 2 Aug 2001 07:26:36 -0700
OK, I put together a sample project that shows a major bug with
forwardinvocation. The problem is that the forwardinvocation stuff
retains the objects it returns from methods and everytime you call the
method, the retain count just keeps growing. Check out the code and you
will see what I'm talking about.
This is a major pain in the ass. I structured a large part of my app
around this forwardinvocation stuff and my app hogs memory like a mofo!!
Apple, please fix soon!! (or tell me what I'm doing wrong)
goto
http://www.cocoatech.com to download the project: filename =
duh.tgz
steve