KVO how to determine observers
KVO how to determine observers
- Subject: KVO how to determine observers
- From: Daryl Thachuk <email@hidden>
- Date: Thu, 17 Jun 2004 13:03:12 -0600
Hi All
I have an object which may or may not have observers. How can I
determine if it is safe to dispose this object? When I release the
object and there are Key Value Observers registered with it I get an
exception. The trick is that this object may not have observers and if
I issue a removeObserver without any observers I get an exception.
If there is a simple way to check for observers that would be perfect
otherwise I'll have to hand roll my own method.
-d
------
Daryl Thachuk
Montage Technologies Inc.
http://www.montagetech.com
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.