Re: _NSKeyValueObservationInfoCreateByRemoving crashing
Re: _NSKeyValueObservationInfoCreateByRemoving crashing
- Subject: Re: _NSKeyValueObservationInfoCreateByRemoving crashing
- From: mmalcolm crawford <email@hidden>
- Date: Wed, 2 Nov 2005 11:05:41 -0800
On Nov 1, 2005, at 11:41 AM, Stefan Fisk wrote:
I do see your point, but I'm not quite sure why i shouldn't be able
to return a copy. But I am experiencing the exact same problem with
the result class's other key - 'properties' - which internally is a
mutable dictionary. From what i understand KVO should do the hard
work for you, so that if any object in the observed key path
changes you get notified properly anyway. If that is not the case i
can understand fully why my code crashes.
If you return a copy each time, you're in effect changing the value
in the key-path without emitting a KVO change notification...
mmalc
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden