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 3348732
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T01:34:42+00:00 2026-05-18T01:34:42+00:00

I dont want to go through the data migration with an existing iphone app.

  • 0

I dont want to go through the data migration with an existing iphone app. Is is possible to have the ipad version use a different xcdatamodel file than the iphone version?

I search the project files where it reference myapp.xcdatamodel and cant find where it gets hooked up.

any suggestions?

Where is the appdelegate does it set this?

i do see:

NSURL *storeUrl = [NSURL fileURLWithPath: [[self applicationDocumentsDirectory] stringByAppendingPathComponent: @"storeLocations.sqlite"]];
  • 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-18T01:34:43+00:00Added an answer on May 18, 2026 at 1:34 am

    There’s nothing magical about the persistent store coordinator or any other part of core data. They’re just objects with methods and properties, like anything else.

    In your app delegate you just need to specify more than one, a la:

    header

    NSManagedObjectContext *managedObjectContext;
    NSManagedObjectModel *managedObjectModel;
    NSPersistentStoreCoordinator *persistentStoreCoordinator;
    
    NSManagedObjectContext *managedObjectContext2;
    NSManagedObjectModel *managedObjectModel2;
    NSPersistentStoreCoordinator *persistentStoreCoordinator2;
    

    implementation

    - (NSManagedObjectContext *)managedObjectContext {
    
      if (managedObjectContext != nil) {
        return managedObjectContext;
      }
    
      NSPersistentStoreCoordinator *coordinator = [self persistentStoreCoordinator];
      if (coordinator != nil) {
        managedObjectContext = [[NSManagedObjectContext alloc] init];
        [managedObjectContext setPersistentStoreCoordinator:coordinator];
      }
      return managedObjectContext;
    } 
    

    and

    - (NSManagedObjectContext *)managedObjectContext2 {
    
      if (managedObjectContext2 != nil) {
        return managedObjectContext2;
      }
    
      NSPersistentStoreCoordinator *coordinator2 = [self persistentStoreCoordinator2];
      if (coordinator2 != nil) {
        managedObjectContext2 = [[NSManagedObjectContext alloc] init];
        [managedObjectContext2 setPersistentStoreCoordinator:coordinator2];
      }
      return managedObjectContext2;
    } 
    

    etc.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to disable the OData support? I dont want this automatism because
I want to use Validation Controls but I dont want them to show their
I currently have multiple queries that query data from a few tables linked through
I'm developing an iOS application using Core Data. I want to have the persistent
I dont want the ckeditor to escape text written. I use the editor such
I don't see it in the beta, and I don't want to jump through
If you dont want the long sschpeal head the the last paragraph--> I found
I want to make a movieclip invisible initially but i dont want to set
I want to show terms and condition note on my website. I dont want
I am making an application that I dont want it to close. So on

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.