Fogmeister
Fogmeister

Reputation: 77641

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?

Upvotes: 3

Views: 130

Answers (1)

Hal Mueller
Hal Mueller

Reputation: 7646

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

Upvotes: 2

Related Questions