• 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: __weak pointer collection firing prematurely???
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: __weak pointer collection firing prematurely???


  • Subject: Re: __weak pointer collection firing prematurely???
  • From: Kyle Sluder <email@hidden>
  • Date: Mon, 13 Aug 2012 09:01:12 -0700

On Aug 13, 2012, at 1:00 AM, Quincey Morris <email@hidden> wrote:

> There's nothing about the fact that the document is executing a method that prevents it from being deallocated before the method ends.

As was discussed on the objc-language list recently, the ARC spec specifically guarantees that an object's lifetime includes the entire duration of a method invocation. An object *cannot* be deallocated while one of its methods is executing.

Britt, have you tried upgrading your tools? Xcode 4.1.1 is pretty old in terms of ARC bugfixes. This might be a codegen issue.

--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: __weak pointer collection firing prematurely???
      • From: Quincey Morris <email@hidden>
    • Re: __weak pointer collection firing prematurely???
      • From: Kyle Sluder <email@hidden>
References: 
 >__weak pointer collection firing prematurely??? (From: Britt Durbrow <email@hidden>)
 >Re: __weak pointer collection firing prematurely??? (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: How do I get memory usage numbers?
  • Next by Date: Re: How to size a TextView to fit a given line?
  • Previous by thread: Re: __weak pointer collection firing prematurely???
  • Next by thread: Re: __weak pointer collection firing prematurely???
  • Index(es):
    • Date
    • Thread