What’s the best way to make an NSManagedObject attribute Unique?
For example, should willSave or validateForInsert: or validateForUpdate: managed object methods be used to check if the value entered in attributeUnique is Unique? And, how exactly?
I ended up writing an
NSManagedObjectcategory method, and using theNSManagedObject‘s validation method: