Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5979803
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T21:42:39+00:00 2026-05-22T21:42:39+00:00

ALM is great. But I can’t get it to work on a project that

  • 0

ALM is great. But I can’t get it to work on a project that uses Core Data with NSDocument. It seems that ALM is disabled by default.

Fine. For any normal project, you’d add the two appropriate options to the dictionary in this line:

if (![persistentStoreCoordinator addPersistentStoreWithType:NSSQLiteStoreType configuration:nil URL:storeUrl options:options error:&error])

…but that line doesn’t exist when using CD with NSD (NSPersistentDocument hides the details and I can’t see how you can modify them).

The following method seems to offer hope:

configurePersistentStoreCoordinatorForURL:ofType:modelConfiguration:storeOptions:error:

…some people on mailing lists (from 4+ years ago) report success overriding that method, altering the options dictionary, and then re-invoking it on “super”. That didn’t work for me, sadly. I would advise trying that first if you have similar problems – then come back here if it still doesn’t work 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T21:42:40+00:00Added an answer on May 22, 2026 at 9:42 pm

    Making a new Cored-Data-with-NSDocument project from scratch, I tried the approach that didn’t work originally, and it worked fine this time:

    -(BOOL)configurePersistentStoreCoordinatorForURL:(NSURL *)url ofType:(NSString *)fileType modelConfiguration:(NSString *)configuration storeOptions:(NSDictionary *)storeOptions error:(NSError **)error
    {
        NSMutableDictionary *newOptions = [NSMutableDictionary dictionaryWithDictionary:storeOptions];
        [newOptions setValue:@"YES" forKey:NSMigratePersistentStoresAutomaticallyOption];
        [newOptions setValue:@"TRUE" forKey:NSInferMappingModelAutomaticallyOption];
    
        return [super configurePersistentStoreCoordinatorForURL:url ofType:fileType modelConfiguration:configuration storeOptions:newOptions error:error];
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I get this error when trying to Go Online with a project on a
I want to retrieve data from sqlite. user can have more than 1 score
I was looking at open source ALM tools and discovered an interesting project called
I want to add duplicate lines I have tried but not able to get
In the TFS Branching Guide 2010 v1 ( here ) the ALM Rangers gives
Clarification: I'm referring to companies that pay developers, professionally. I understand why a hobby
I am trying to post a request to a REST service (HP ALM 11
I have an internship coming up in February where I will work with Visual
We are looking for a work item tracking tool (bugs, enhancements, etc.) for our
I have a data set (below) with a power relationship. (Y =aX^b) The power

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.