ios - Core Data Entity attribute disappearing -


i create core data entity magical record in 1 of classes. save context , assign entity custom cell object's property.

i pass cell object different class displays it. @ random point, entity's attributes become nil.

i can still find entity in data base , still valid. @ no point cell object become de-refereance (its stored in class property array).

so, @ 1 point in program, here entity:

2013-05-08 13:58:51.425 debug | -[datasetsubbar doescellarray:containcellwithdataset:] | cell.dataset: <savedanalysis: 0x22b0a4d0> (entity: savedanalysis; id: 0x22bba720 <x-coredata://42ca4347-1df1-4c6b-ab44-03efe3d86f3a/savedanalysis/p110> ; data: {     createdate = "2013-05-08 18:58:00 +0000";     name = "unsaved analysis"; }) 

a few seconds later:

2013-05-08 13:58:54.417  debug | -[datasetsubbar createdisplaypanelcells] | cell.dataset.name: (null) 2013-05-08 13:58:54.417  debug | -[datasetsubbar createdisplaypanelcells] | cell.dataset: <savedanalysis: 0x22b0a4d0> (entity: savedanalysis; id: 0x22bba720 <x-coredata://42ca4347-1df1-4c6b-ab44-03efe3d86f3a/savedanalysis/p110> ; data: <fault>) 

the pointer entity still alive, name property nil.

i check database , entity still there:

dataset *test = [dataset mr_findfirstbyattribute:@"imagehandle" withvalue:self.testimagehandle incontext:[nsmanagedobjectcontext mr_contextforcurrentthread]];  dlog(@"mr_contextforcurrentthread | lost dataset: %@", test); 

.

2013-05-08 13:58:54.408  debug | -[datasetsubbar createdisplaypanelcells] | mr_contextforcurrentthread | lost dataset: <savedanalysis: 0x1e8157a0> (entity: savedanalysis; id: 0x22bba720 <x-coredata://42ca4347-1df1-4c6b-ab44-03efe3d86f3a/savedanalysis/p110> ; data: {     createdate = "2013-05-08 18:58:00 +0000";     name = "unsaved analysis"; }) 

i'm baffled entity's property become nil while entity remains referenced , entity still in database. using arc.


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -