re: Core Data: is fetching safe during validateForInsert:/validateForUpdate?

2009-03-28 Thread Ben Trumbull
Is it OK to perform a fetch during validateForInsert:/ validateForUpdate:? I have a Core Data entity named 'Person' with an attribute named 'uniqueNumber'. I want to ensure that no two People have the same uniqueNumber. It's not a great idea during validateForDelete: It fine during

re: Core Data: is fetching safe during validateForInsert:/validateForUpdate?

2009-03-28 Thread jmunson
Namaste! This is off-list. You know, I just went through this with the validateKey: bit. I found that a side effect of fetching during that validateKey was the save all pending changes bug. I then tried the performSelector, which worked, however, then the validateKey was no longer

re: Core Data: is fetching safe during validateForInsert:/validateForUpdate?

2009-03-28 Thread jmunson
Guess that WASN'T off-list. Sorry for the noise! ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com