• 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 how to determine observers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Prev by Date: Re: Scrolling List of Thumbnails?
  • Next by Date: Small resize control with textured (metal) window
  • Previous by thread: Re: Controlling Volume with NSSound?
  • Next by thread: Small resize control with textured (metal) window
  • Index(es):
    • Date
    • Thread