core data - NSFetchedResultsController change tracking across relationship -
i have model 2 entities linked to-one relationship. want display in tableview entitya objects entityb.myintattribute equals given value. works when create fetchrequest entitya predicate @"entityb.myintattribute == avalue".
my problem change tracking. have set nsfetchedresultscontrollerdelegate delegate on nsfetchedresultscontroller associated previous fetchrequest. delegate works because gets notified of deletion if set new entityb doesn't match predicate on 1 of results. if change directly value of myintattribute on entityb object predicate result changes, delegate not notified of change.
does nsfetchedresultscontroller change tracking work predicate goes across relationship ? how can fetchedresultcontroller recompute predicate after modification of attribute of relationship ?
are implementing of following methods in delegate:
- (void)controller:(nsfetchedresultscontroller *)controller didchangesection:(id <nsfetchedresultssectioninfo>)sectioninfo atindex:(nsuinteger)sectionindex forchangetype:(nsfetchedresultschangetype)type - (void)controller:(nsfetchedresultscontroller *)controller didchangeobject:(id)anobject atindexpath:(nsindexpath *)indexpath forchangetype:(nsfetchedresultschangetype)type newindexpath:(nsindexpath *)newindexpath - (void)controllerdidchangecontent:(nsfetchedresultscontroller *)controller - (void)controllerwillchangecontent:(nsfetchedresultscontroller *)controller
Comments
Post a Comment