Re: program termination after releasing self defined NSXMLParser class
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