_NSKeyValueObservationInfoCreateByRemoving crashing
_NSKeyValueObservationInfoCreateByRemoving crashing
- Subject: _NSKeyValueObservationInfoCreateByRemoving crashing
- From: Stefan Fisk <email@hidden>
- Date: Tue, 1 Nov 2005 17:50:23 +0100
Dear all,
Has anyone gotten anywhere with the
_NSKeyValueObservationInfoCreateByRemoving crashing bug? It's
currently driving me completely mad.
I've got an array of objects with two keys that are bound to a table
view, "engine.displayName" and "properties".
When i use normal value accessor methods that return a copy of the
objects, the application crashes as soon as there's an object added
to the array. But if i instead return the original object, everything
works just fine, EVEN if a change the instance variable to a copy of
the object and return the original. The engine class's displayName
method is just a wrapper for a NSBundle method, so I assume that it
returns autoreleased objects like it should.
So basically:
Works for now, but is stopping me from adding planned features.
- (Engine *)engine {
return [[engine retain] autorelease];
}
Also works for now, but is stopping me from adding planned features.
- (Engine *)engine {
id old = [engine autorelease];
engine = [engine copy];
return old;
}
Crashes instantly, but it's the right thing to do.
- (Engine *)engine {
return [[engine copy] autorelease];
}
_______________________________________________
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