This commit is contained in:
John Estropia
2016-03-28 19:35:09 +09:00
parent b0b0df2861
commit e9ac8629a1
4 changed files with 5 additions and 5 deletions

View File

@@ -61,7 +61,7 @@ internal extension NSManagedObjectContext {
}
@nonobjc
internal class func rootSavingContextForCoordinator(coordinator: NSPersistentStoreCoordinator) -> NSManagedObjectContext {
internal static func rootSavingContextForCoordinator(coordinator: NSPersistentStoreCoordinator) -> NSManagedObjectContext {
let context = NSManagedObjectContext(concurrencyType: .PrivateQueueConcurrencyType)
context.persistentStoreCoordinator = coordinator
@@ -73,7 +73,7 @@ internal extension NSManagedObjectContext {
}
@nonobjc
internal class func mainContextForRootContext(rootContext: NSManagedObjectContext) -> NSManagedObjectContext {
internal static func mainContextForRootContext(rootContext: NSManagedObjectContext) -> NSManagedObjectContext {
let context = NSManagedObjectContext(concurrencyType: .MainQueueConcurrencyType)
context.parentContext = rootContext

View File

@@ -34,7 +34,7 @@ internal extension NSManagedObjectModel {
// MARK: Internal
@nonobjc
internal class func fromBundle(bundle: NSBundle, modelName: String, modelVersionHints: Set<String> = []) -> NSManagedObjectModel {
internal static func fromBundle(bundle: NSBundle, modelName: String, modelVersionHints: Set<String> = []) -> NSManagedObjectModel {
guard let modelFilePath = bundle.pathForResource(modelName, ofType: "momd") else {

View File

@@ -35,7 +35,7 @@ public extension CSCoreStore {
Returns the `defaultStack`'s model version. The version string is the same as the name of the version-specific .xcdatamodeld file.
*/
@objc
public class var modelVersion: String {
public static var modelVersion: String {
return CoreStore.modelVersion
}

View File

@@ -40,7 +40,7 @@ public final class CSCoreStore: NSObject {
Changing the `defaultStack` is thread safe, but it is recommended to setup stacks on a common queue (e.g. the main queue).
*/
@objc
public class var defaultStack: CSDataStack {
public static var defaultStack: CSDataStack {
get {