• 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
Core Data didTurnIntoFault:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Core Data didTurnIntoFault:


  • Subject: Core Data didTurnIntoFault:
  • From: Alain Schartz <email@hidden>
  • Date: Mon, 20 Aug 2007 01:41:24 -0700

Hi list,

Newbie question: I have an NSManagedObject with a transient NSColor attribute. Following the Core Data programming guide, I did not implement dealloc in the managed object's class but specified didTurnIntoFault: to clean up :

-(void) didTurnIntoFault {
[self setColor: nil];   // Actually I did this for every transient non-standard attribute
}

Is this correct? I use pre-calculated getters and delayed-update setters as accessors...

What about [super dealloc], this should not be included in didTurnIntoFault: since Core Data takes care of the managed object's life cycle, right ?

Thanks,
Alain
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: NSArrayController and Class objects
  • Next by Date: Re: Subclass of NSTextView resizes strangely...
  • Previous by thread: NSArrayController and Class objects
  • Next by thread: Userdefaults, their initial values, and bindings
  • Index(es):
    • Date
    • Thread