• 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
KVO cross dependencies
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

KVO cross dependencies


  • Subject: KVO cross dependencies
  • From: Half Activist <email@hidden>
  • Date: Fri, 13 Nov 2009 14:43:02 +0100

Hi all,

I have sevral objects of different kind that observe values on each other.
Now, when the objects are being released, I get an exception from the KVO stuff telling me that an object is being deallocated while still observed. And that's justified. Yet, the problem is in whatever way, order I deallocate the objects that will always happen because of these cross observations. Therefore what I should do is tell everyone that's observing an object to remove them as observers. But how can I get a list of all observed keys and the observers?


Regards.

PS: I thought about setting the observation info to nil but I guess this is a one way ticket to a segfault.

_______________________________________________

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: KVO cross dependencies
      • From: Roland King <email@hidden>
  • Prev by Date: CPU sampling and +[NSURLConnection(NSURLConnectionReallyInternal) _resourceLoadLoop:]
  • Next by Date: Re: KVO cross dependencies
  • Previous by thread: Re: CPU sampling and +[NSURLConnection(NSURLConnectionReallyInternal) _resourceLoadLoop:]
  • Next by thread: Re: KVO cross dependencies
  • Index(es):
    • Date
    • Thread