i'm using odata4objc have iphone app retreive/edit odata.
i've been able retrieve data, when try delete data:
entities *proxy = [[entities alloc]initwithuri:@"http://localhost:8080/resource/example.svc" credential:nil]; //creates , accesses person object specified row model_date* selecteddate = [items objectatindex:indexpath.row]; nslog(@"project number: %@", selecteddate.getdate_project); [proxy deleteobject:selecteddate]; [proxy savechanges];
it throws error @ deleteobject:
terminating app due uncaught exception 'exception', reason: 'invalid operation : context not tracking entity.'
i know it's tracking entity - nslog prints out project project number.
deleteobject defined in objectcontext.h (framework/bin/odatalib/include), have added project path. i've tried debug step step objectcontext.m included binary, see assembly.
does have pointers/suggestions??
Comments
Post a Comment