Programmatically providing default value for new core data attribute?

2012-10-31 Thread Rick Mann
Hi. I've added a simple attribute to my model that should be a concatenation of a handful of other attributes, run through some code. I don't suppose there's any way to do the lightweight migration but tell it, here's a method to call to get the default value of this property? I looked at

Re: Programmatically providing default value for new core data attribute?

2012-10-31 Thread Dave Fernandes
[resent to list-serve] You can create a subclass of NSEntityMigrationPolicy, then specify this class in the Custom Policy for that entity in your mapping model. During migration, the createDestinationInstancesForSourceInstance method of your migration policy class will be called, and can

Re: Programmatically providing default value for new core data attribute?

2012-10-31 Thread Jerry Krinock
On 2012 Oct 31, at 02:44, Rick Mann rm...@latencyzero.com wrote: Will -isConfiguration:compatibleWithStoreMetadata: tell me a lightweight migration-capable change is incompatible? I think all it does is compare UUIDs or hashes, so the answer is no. I looked at doing a mapping model, but