marcoarment / FCModel

An alternative to Core Data for people who like having direct SQL access.
MIT License
1.65k stars 173 forks source link

non-unique-instances to unique2 #131

Open mjmsmith opened 9 years ago

mjmsmith commented 9 years ago

Hi, I'm moving my app from the non-unique-instances branch to unique2. A couple of questions:

My model objects have custom initializers that make sure they're fully constructed. I added a category to FCModel that provides the old save behavior:

- (BOOL)save {
  return [self save:^{}];
}

Am I likely to run into any problems initializing and saving this way rather than using the save: block?

On app start, I used to call FCModel's openDatabaseAtPath:schemBuilder: on a background thread so that I could show a spinner on the UI thread. Is there any way to do this with the unique2 branch, or should I just call the method while the static launch view is displayed?

Thanks!