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

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

python - build a suggestions list using fuzzywuzzy -