Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

coredata kvo count

Is it possible to set up a KVO trigger for the count of a number of entities in CoreData?

At the moment I'm watching the "DidSaveNotification" but it triggers a lot.

Is there another, better way to do this?

like image 273
Fogmeister Avatar asked Dec 19 '25 20:12

Fogmeister


1 Answers

Can you do your tracking in -awakeFromInsert and -prepareForDeletion?

like image 108
Hal Mueller Avatar answered Dec 21 '25 14:12

Hal Mueller



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!