Skip to content

non-unique-instances to unique2 #131

@mjmsmith

Description

@mjmsmith

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

  • save

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?

  • migrations

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions