small medium large xlarge

Back to: All Forums  Core Data
Generic-user-small
15 Dec 2009, 09:51
Peter Targett (1 post)

I’m working on a first iPhone app using Core Data. In particular I’m trying to use transient values in some of my entities - I figured out I can calculate these in awakeFromFetch: which is great, but when, or if, do I have to release them?

I read on P52 of the methods didTurnIntoFault and willTurnIntoFault - both mention it’s a good place to release transient resources. So are either preferred then?

Great book, thanks.

Avatarsmall_pragsmall
19 Dec 2009, 17:40
Marcus S. Zarra (284 posts)

I would recommend doing it in willTurnIntoFault as didTurnInfoFault is fired later in the lifecycle.

You must be logged in to comment