I have class A
(subclass of NSManagedObject) that has a property of class B
(also subclass of NSManagedObject), the property is @synthesize
not @dynamic
, there is no relationship between A
and B
in my model, I just want that A
will keep a reference to a B
object while he(A
) is alive.
(When I first fetch object A
from db, his B
property is null)
I Override the B
property getter, so when first called he will fetch the B
object from db.
Now do I need to retain the fetch result of B
?
I think I heard that it is not a good idea to retain objects that the NSManagedObjectContext manage.