• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSManagedObject turning into a Zombie
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: (no subject)
  • Next by Date: Nib files in memory
  • Previous by thread: (no subject)
  • Next by thread: Nib files in memory
  • Index(es):
    • Date
    • Thread