• 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
removeObserver:forKeyPath: when already removed
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

removeObserver:forKeyPath: when already removed


  • Subject: removeObserver:forKeyPath: when already removed
  • From: James Walker <email@hidden>
  • Date: Wed, 11 Nov 2009 14:35:16 -0800

I had a situation where removeObserver:forKeyPath: was called twice for the same receiver (an NSUserDefaultsController), the same observer, and the same key path. It threw an NSRangeException. But the KVO docs don't say anything about removeObserver:forKeyPath: throwing an exception. Should this be considered a documentation bug, or is it a bug that -[NSUserDefaultsController removeObserver:forKeyPath:] threw an exception, or should I have just expected this due to some general principle?
--
James W. Walker, Innoventive Software LLC
<http://www.frameforge3d.com/>
_______________________________________________


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: removeObserver:forKeyPath: when already removed
      • From: Shawn Erickson <email@hidden>
    • Re: removeObserver:forKeyPath: when already removed
      • From: Jim Correia <email@hidden>
  • Prev by Date: How many processors do I have?
  • Next by Date: Re: How many processors do I have?
  • Previous by thread: Re: How many processors do I have?
  • Next by thread: Re: removeObserver:forKeyPath: when already removed
  • Index(es):
    • Date
    • Thread