Re: [sqlite] CoreData - when database gets closed

2019-01-23 Thread Scott Perry
On Jan 22, 2019, at 9:02 AM, Simon Slavin wrote: > > On 22 Jan 2019, at 3:45pm, Maldonado-Salazar, Carlos > wrote: > >> Is there a way to know when CoreData closes sqlite files?. I’m using >> CoreData in an iOS app and I set file attributes for sqlite file to be >>

Re: [sqlite] CoreData - when database gets closed

2019-01-22 Thread Simon Slavin
On 22 Jan 2019, at 3:45pm, Maldonado-Salazar, Carlos wrote: > Is there a way to know when CoreData closes sqlite files?. I’m using CoreData > in an iOS app and I set file attributes for sqlite file to be > NSFileProtectionCompleteUnlessOpen which throws away the key to encrypt the > file

[sqlite] CoreData - when database gets closed

2019-01-22 Thread Maldonado-Salazar, Carlos
Is there a way to know when CoreData closes sqlite files?. I’m using CoreData in an iOS app and I set file attributes for sqlite file to be NSFileProtectionCompleteUnlessOpen which throws away the key to encrypt the file when it’s closed, denying access to it.