• 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: program termination after releasing self defined NSXMLParser class
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: program termination after releasing self defined NSXMLParser class


  • Subject: Re: program termination after releasing self defined NSXMLParser class
  • From: Kyle Sluder <email@hidden>
  • Date: Fri, 16 Apr 2010 09:44:24 -0700

On Fri, Apr 16, 2010 at 9:25 AM, Jens Alfke <email@hidden> wrote:
> That’s true in general, but in this case he’s setting the parser’s delegate
> to itself. Which is weird, but should mean that the object can’t possibly
> outlive the delegate :)

Well there's yer problem! :D

The first step is not making an object its own delegate. We've seen
plenty of cases (including one recently with UITextField) where
objects send themselves messages that are also part of their delegate
protocol. So this is never a good idea to begin with.

--Kyle Sluder
_______________________________________________

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: program termination after releasing self defined NSXMLParser class
      • From: Roland King <email@hidden>
References: 
 >Re: program termination after releasing self defined NSXMLParser class (From: Kyle Sluder <email@hidden>)
 >Re: program termination after releasing self defined NSXMLParser class (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Does XCode 3.2 Documentation Browser Stink?
  • Next by Date: Re: How to empty the Trash programmatically?
  • Previous by thread: Re: program termination after releasing self defined NSXMLParser class
  • Next by thread: Re: program termination after releasing self defined NSXMLParser class
  • Index(es):
    • Date
    • Thread