Skip to content

Instantly share code, notes, and snippets.

horseshoe7 horseshoe7

Block or report user

Report or block horseshoe7

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@horseshoe7
horseshoe7 / gist:0083ce48cba98ae107a18de06a39767f
Created Sep 13, 2017
Initialization of Core Data stack that needs a manual migration from 2 different models and stores:
View gist:0083ce48cba98ae107a18de06a39767f
// see also this gist: https://gist.github.com/horseshoe7/e85bbb90278f626bea2f827ee5228703
// and a post about Core Data migrations at http://horseshoe7.wordpress.com
import Foundation
import CoreData
class CoreDataStackHelper : NSObject, MHWMigrationManagerDelegate {
var currentModelStoreURL: URL? = nil
@horseshoe7
horseshoe7 / gist:e85bbb90278f626bea2f827ee5228703
Last active Jan 5, 2018
Incremental MHWMigrationManager extended for optional finalDestinationURL
View gist:e85bbb90278f626bea2f827ee5228703
#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>
@class MHWMigrationManager;
@protocol MHWMigrationManagerDelegate <NSObject>
NS_ASSUME_NONNULL_BEGIN
@optional
- (void)migrationManager:(MHWMigrationManager *)migrationManager migrationProgress:(float)migrationProgress;
You can’t perform that action at this time.