On 1 May 2009, at 1:59 AM, Mike Manzano wrote:

My question is it the case that NSXMLParser frees itself if it encounters an error, but does NOT free itself on a successful parse of a document?

When parser:parseErrorOccurred: is sent, the parser is still running. You can't release it in the middle. If you do, I expect it to crash.

My experience has been that if you release it _after_ -[NSXMLParser parse], and not within a method the parser itself is using, the parser is neither under- nor over-released. In other words, it has to be released, error or no, after it has finished parsing.

        — F

--
Fritz Anderson -- Xcode 3 Unleashed: Now in its second printing -- <http://x3u.manoverboard.org/ >

_______________________________________________

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

Reply via email to