On 22 Jan 2019, at 3:45pm, Maldonado-Salazar, Carlos 
<carlos.maldonado-sala...@united.com> 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 when it’s closed, denying access to it.

I don't think I've seen one.  Technically, CoreData might hold its file open 
after your application has quit, for example if it's doing lazy writing.  So 
there'd be nothing to notify

Using NSFileProtectionCompleteUnlessOpen or NSFileProtectionComplete should do 
a good job of keeping your data secure.

Simon.
_______________________________________________
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to