Re: NSXMLParser frees itself on error?
Re: NSXMLParser frees itself on error?
- Subject: Re: NSXMLParser frees itself on error?
- From: Fritz Anderson <email@hidden>
- Date: Sun, 3 May 2009 14:50:11 -0500
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 (email@hidden)
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:
This email sent to email@hidden