Re: _NSKeyValueObservationInfoCreateByRemoving crashing
Re: _NSKeyValueObservationInfoCreateByRemoving crashing
- Subject: Re: _NSKeyValueObservationInfoCreateByRemoving crashing
- From: mmalcolm crawford <email@hidden>
- Date: Tue, 1 Nov 2005 10:20:26 -0800
On Nov 1, 2005, at 9:26 AM, Stefan Fisk wrote:
The Engine class only has one instance variable that identifies it,
so the copyWithZone: just calls initWithPath:.
I'd *guess* that by returning a copy in the accessor you're
subverting KVO and bindings in general, since the object being
observed isn't the same as the property of the original (and it's
continually changing with each access).
It's not clear why you would return a copy of an Engine -- from the
name it sounds like something that would be a relationship rather
than an attribute...?
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