On May 7, 2009, at 12:27 AM, Marcel Weiher wrote:
In fact, NSXMLParser very likely *should* maintain autorelease pools, because its clients can't safely do this and there is quite a potential for growing the heap during XML parsing.
"One technique for dealing with these generated objects is for the delegate to create a local autorelease pools at the beginning of each implemented delegation method and release the autorelease pool just before returning."
<http://developer.apple.com/documentation/Cocoa/Conceptual/XMLParsing/Articles/UsingParser.html >
So it's pretty clear that NSXMLParser is not itself wrapping the delegate calls in an autorelease pool. And for good reason. :-)
_______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com