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

  • Home
  • SEARCH
  • 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

Some people want to see the DB structure and dont have VS, is there
I want to use Validation Controls but I dont want them to show their
I dont want the ckeditor to escape text written. I use the editor such
I have the following code to read data from my .plist for use in
I need to search a string in the string array. I dont want to
I don't want to use the default route that vs.net creates: routes.MapRoute( Default, //
I don't want to have the user install Google Gears so I can show
I don't want to use the HTTP::Proxy package because I want to dump out
In Flash Professional CS4, I get migration issue warnings when I use mouse/keyboard input
i use this code to split a data to make a list with three

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.