Re: Releasing Object belonging to Core Data transient attribute
Re: Releasing Object belonging to Core Data transient attribute
- Subject: Re: Releasing Object belonging to Core Data transient attribute
- From: mmalcolm crawford <email@hidden>
- Date: Mon, 13 Mar 2006 23:01:26 -0800
On Mar 13, 2006, at 10:53 PM, David Chan wrote:
Hi all, I am working Core Data and one of my entity has a transient
attribute that temporarily store binary data. I understand that this
transient attribute's object will be released when I quit my
application.
But is there a way I can release them immediately whenever I have
no use for
the object anymore? Thanks..
"If you define custom instance variables, for example, to store
derived attributes or other transient properties, you should clean up
these variables in didTurnIntoFault rather than dealloc."
<http://developer.apple.com/documentation/Cocoa/Reference/
CoreData_ObjC/Classes/NSManagedObject_index.html>
See also <http://developer.apple.com/documentation/Cocoa/Conceptual/
CoreData/Articles/cdPerformance.html>
mmalc
_______________________________________________
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