• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSXMLParser frees itself on error?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSXMLParser frees itself on error? (From: Mike Manzano <email@hidden>)

  • Prev by Date: FTP Client Framework
  • Next by Date: Re: NSXMLParser frees itself on error?
  • Previous by thread: Re: NSXMLParser frees itself on error?
  • Next by thread: Re: NSXMLParser frees itself on error?
  • Index(es):
    • Date
    • Thread