views:

36

answers:

1

Hi!

Is there way to limit the number of saved objects in coredata like stack, where the last objects are automatically deleted?

A: 

No, that is something you would need to implement in code. You can, just before you call -save: on the NSManagedObjectContext query the NSManagedObjectContext for how many objects are going to be inserted and perform your custom logic at that point.

Marcus S. Zarra