Re: CoreData retain/release/delete
Re: CoreData retain/release/delete
- Subject: Re: CoreData retain/release/delete
- From: John Brownlow <email@hidden>
- Date: Fri, 29 Apr 2005 16:22:31 -0400
Yeah, I've made pretty much everything in my app a custom subclass just
so I can use proper accessors instead of the error prone -valueForKey.
How about over-riding -dealloc like this, in appropriate subclasses?
- (void) dealloc
{
// regular dealloc stuff
[[self managedObjectContext] deleteObject: self];
}
It seems like it would work and is reasonably elegant, but it seems a
bit too obvious to be valid code! :)
On Apr 29, 2005, at 4:03 PM, Scott Stevenson wrote:
You can control-click on an Entity in the model to get a custom class
generated for you. Should be easier to figure this by doing that.
--
John Brownlow
Deep Fried Films, Inc
http://www.johnbrownlow.com
http://www.pinkheadedbug.com
_______________________________________________
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