• 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: Crash when dispaying document in iChat Theater
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Crash when dispaying document in iChat Theater


  • Subject: Re: Crash when dispaying document in iChat Theater
  • From: Antonio Nunes <email@hidden>
  • Date: Mon, 21 Apr 2008 18:32:36 +0100

On Apr 21, 2008, at 5:52 PM, Quincey Morris wrote:

If d is a local variable, as this code fragment seems to say, what's keeping it (and therefore d.someView) from getting garbage collected as soon as it goes out of scope? 'setVideoDataSource' is documented to *not* retain the view (in non-GC), and I would take such a statement to mean that it does not hold a keep-alive reference to the object (in GC) either.

d is a local variable indeed, but it is just an intermediate instrument, one that points to a document that is held' by the document controller. The object d points to remains connected to a root object by being held by the controller.


Just in case: turning of the collector for variable d doesn't make a difference. Stil crashes.

António

-----------------------------------------------------------
And you would accept the seasons of your
heart, even as you have always accepted
the seasons that pass over your field.

--Kahlil Gibran
-----------------------------------------------------------



_______________________________________________

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: Crash when dispaying document in iChat Theater
      • From: Quincey Morris <email@hidden>
References: 
 >Crash when dispaying document in iChat Theater (From: Antonio Nunes <email@hidden>)
 >Re: Crash when dispaying document in iChat Theater (From: Quincey Morris <email@hidden>)

  • Prev by Date: Remove the GUI > Revert applications to command-line binaries.
  • Next by Date: Re: NSTableView -editColumn:row:withEvent:select: question
  • Previous by thread: Re: Crash when dispaying document in iChat Theater
  • Next by thread: Re: Crash when dispaying document in iChat Theater
  • Index(es):
    • Date
    • Thread