Post

Replies

Boosts

Views

Activity

does the .backgroundTask SwiftUI modifier work with BGProcessingTaskRequest requests?
Need to run a task in the background that will take several minutes, so BGProcessingTaskRequest seems more appropriate than BGAppRefreshTaskRequest. I'm not sure however that the .backgroundTask modifier will run this since its two possible arguments are either .appRefresh or .UrlSession Thank you in advance, Javier
2
1
1.6k
Aug ’22
Core Data bug? NONE, NOT ANY don't work in a predicate, SUBQUERY workaround does
Hi, I have an NSPredicate with format: "ANY containsEntity.id == %lld" I was trying to not-it, but the following don't work: NSCompoundPredicate(notPredicateWithSubpredicate: myPredicate) "NOT(ANY containsEntity.id == %lld)" "NONE containsEntity.id == %lld" containsEntity is a one to many relationship Is this a bug, as the following link may indicate? https://stackoverflow.com/questions/14471910/nspredicate-aggregate-operations-with-none Using the SUBQUERY workaround detailed in that link, adapted to my own query, provided the desired predicate functionality. SUBQUERY(containsEntity, $a, $a.id ==%lld).@count ==0" If it's a bug, that's a surprisingly long lived one, please fix it. Otherwise, I'd be grateful if someone could explain what I'm missing. Thank you in advance, Javier
1
0
986
Jun ’22