removeObserver:forKeyPath: when already removed
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