• 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: Kyle Sluder <email@hidden>
  • Date: Mon, 4 May 2009 19:45:28 -0400

On Mon, May 4, 2009 at 2:31 PM, Stephen J. Butler
<email@hidden> wrote:
> I still maintain that it's never safe to release/autorelease an object
> from inside one of it's delegate calls. If it works at all, you're
> implicitly relying on an implementation detail that's subject to
> change.

Sometimes you do have to worry about this.  For example, an instance
of an NSWindowController subclass might be the delegate of a control
(maybe an NSTableView data source) to which it also has an outlet.
The NSWindowController subclass instance must be sure to remove itself
as the table view's delegate in its -dealloc method before releasing
the table view.

--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

References: 
 >NSXMLParser frees itself on error? (From: Mike Manzano <email@hidden>)
 >Re: NSXMLParser frees itself on error? (From: Jesper Storm Bache <email@hidden>)
 >Re: NSXMLParser frees itself on error? (From: "Stephen J. Butler" <email@hidden>)

  • Prev by Date: Re: NSTableView, 2mln rows, looks bad.
  • Next by Date: Re: drawing image
  • Previous by thread: Re: NSXMLParser frees itself on error?
  • Next by thread: Re: NSXMLParser frees itself on error?
  • Index(es):
    • Date
    • Thread