• 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: observing dealloc
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: observing dealloc


  • Subject: Re: observing dealloc
  • From: Shawn Erickson <email@hidden>
  • Date: Mon, 28 May 2007 09:23:28 -0700


On May 28, 2007, at 9:10 AM, Ken Tozier wrote:

Hi

I'm using objects for keys in a dictionary and want the dictionary to observe dealloc invocations on these keys so it can update it's contents. Is there any way to observe calls to an object's dealloc method?

You have two issues. 1) NSDictionary copies keys that you use and 2) NSDictionary holds a retain on those keys (related to issue 1). So dealloc will not get called.


Can you better describe the problem you are trying to solve?

-Shawn
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: 
 >observing dealloc (From: Ken Tozier <email@hidden>)

  • Prev by Date: Re: observing dealloc
  • Next by Date: Re: Looking for a non-Core Data tree solution in Cocoa... is there one?
  • Previous by thread: Re: observing dealloc
  • Next by thread: Re: observing dealloc
  • Index(es):
    • Date
    • Thread