ios - NSFetchedResultsController not calling delegate methods on changes using NSPredicate with subquery -


i have nsfetchedresultscontroller created follows:

let fetchrequest = nsfetchrequest(entityname: "friendship") fetchrequest.sortdescriptors = [     nssortdescriptor(key: "friendtocurrentuser.displayname", ascending: true) ]  fetchrequest.predicate = nspredicate(format: "subquery(friendtocurrentuser.trackingsessions, $x, $x.dataisstale == false , $x.enddate == nil).@count != 0")  let fetchedresultscontroller = nsfetchedresultscontroller(fetchrequest: fetchrequest, managedobjectcontext: coredatamanager.instance.mainmanagedobjectcontext, sectionnamekeypath: nil, cachename: nil) fetchedresultscontroller.delegate = self var error: nserror? if !fetchedresultscontroller.performfetch(&error) {      println(error) } 

when initial fetch completes controller:didchangeobject:atindexpath:forchangetype: called, when object should added/removed due subquery method not called.

if simple delegate methods aren't called when predicate contains subquery that's fine, i've not managed find in documentation. if true, there easy method mimic/force these change delegate methods?


Comments

Popular posts from this blog

mysql - FireDac error 314 - but DLLs are in program directory -

git - How to list all releases of public repository with GitHub API V3 -

c++ - Getting C2512 "no default constructor" for `ClassA` error on the first parentheses of constructor for `ClassB`? -