• 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: "Sean McBride" <email@hidden>
  • Date: Mon, 4 May 2009 17:05:34 -0400
  • Organization: Rogue Research Inc.

On 5/3/09 5:38 PM, Kyle Sluder said:

>Initializers must call -[self release] in case of an error.  This
>means that in response to an error that occurs as part of
>initialization, you must not release that object.

Actually, they should call [super dealloc] not [self release], see:

<http://lists.apple.com/archives/Objc-language/2008/Sep/msg00133.html>

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


_______________________________________________

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

  • Follow-Ups:
    • Re: NSXMLParser frees itself on error?
      • From: Kyle Sluder <email@hidden>
References: 
 >NSXMLParser frees itself on error? (From: Mike Manzano <email@hidden>)
 >Re: NSXMLParser frees itself on error? (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: Why is -makeWindowControllers getting called twice?
  • Next by Date: Re: Installer has admin permissions but installer plugins don't
  • Previous by thread: Re: NSXMLParser frees itself on error?
  • Next by thread: Re: NSXMLParser frees itself on error?
  • Index(es):
    • Date
    • Thread