NSManagedObject turning into a Zombie
NSManagedObject turning into a Zombie
- Subject: NSManagedObject turning into a Zombie
- From: Ken Victor <email@hidden>
- Date: Thu, 22 Jun 2006 17:20:18 -0700
i have an outline view bound to a treecontroller. the treecontroller
is not bound to anything, rather i programmatically set its content
to an array of subclasses MyProxy object instances. MyProxy is a
subclass of NSProxy contains an ivar that is an NSManagedObject.
initially, i was not retaining the NSManagedObject as i was under the
impression that core data would fault it in when needed... and in
fact, this worked most of the time! however, i was occassionaly
raising a zombie exception from -[MyProxy methodSignatureForSelector]
via:
return [[self realObject] methodSignatureForSelector: sel];
i've overcome this by retaining realObject in MyProxy (and releaseing
it in -[MyProxy dealloc].
so... my question is: is it really necessary to retain realObject?
ie, do i misunderstand core data faulting? and if so, could someone
please point me to the appropriate documentation?
thanx,
ken
_______________________________________________
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