Skip to content

Commit

Permalink
Adjusted seed database code so the seed database is saved with the de…
Browse files Browse the repository at this point in the history
…fault seed database name.
  • Loading branch information
bmctigue committed Jul 1, 2011
1 parent aa6102f commit f1fdbe9
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Examples/RKTwitterCoreData/Classes/RKTwitterAppDelegate.m
Expand Up @@ -26,11 +26,14 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(


// Initialize object store // Initialize object store
#ifdef RESTKIT_GENERATE_SEED_DB #ifdef RESTKIT_GENERATE_SEED_DB
NSString* seedDatabaseName = nil; NSString *seedDatabaseName = nil;
NSString *databaseName = RKDefaultSeedDatabaseFileName;
#else #else
NSString* seedDatabaseName = RKDefaultSeedDatabaseFileName; NSString *seedDatabaseName = RKDefaultSeedDatabaseFileName;
NSString *databaseName = @"RKTwitterData.sqlite";
#endif #endif
objectManager.objectStore = [RKManagedObjectStore objectStoreWithStoreFilename:@"RKTwitterData.sqlite" usingSeedDatabaseName:seedDatabaseName managedObjectModel:nil delegate:nil];
objectManager.objectStore = [RKManagedObjectStore objectStoreWithStoreFilename:databaseName usingSeedDatabaseName:seedDatabaseName managedObjectModel:nil delegate:self];


// Setup our object mappings // Setup our object mappings
/*! /*!
Expand Down

0 comments on commit f1fdbe9

Please sign in to comment.