Latest 0.1.1
Homepage https://github.com/bakkenbaeck/SweetCoreData
License MIT
Platforms ios 8.0, osx 10.9, watchos 2.0, tvos 9.0, requires ARC
Frameworks CoreData
Authors

Version
License
Platform

NSManagedObjectContext

Drop entity

let context = NSManagedObjectContext(concurrencyType: .MainQueueConcurrencyType)
context.dropEntity("User")

Count entity

let context = NSManagedObjectContext(concurrencyType: .MainQueueConcurrencyType)
let count = context.countEntity("User")

Fetch entity (with generics)

let context = NSManagedObjectContext(concurrencyType: .MainQueueConcurrencyType)
let users: [User] = context.fetchEntity("User")

Installation

SweetCoreData is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'SweetCoreData'

SweetCoreData is also available through Carthage. To install
it, simply add the following line to your Cartfile:

github "bakkenbaeck/SweetCoreData"

License

SweetCoreData is available under the MIT license. See the LICENSE file for more info.

Author

Bakken & Bæck, @bakkenbaeck

Latest podspec

{
    "name": "SweetCoreData",
    "summary": "Helpers and sugar for the Core Data framework.",
    "version": "0.1.1",
    "homepage": "https://github.com/bakkenbaeck/SweetCoreData",
    "license": "MIT",
    "authors": {
        "Bakken Bu00e6ck AS": "[email protected]"
    },
    "source": {
        "git": "https://github.com/bakkenbaeck/SweetCoreData.git",
        "tag": "0.1.1"
    },
    "social_media_url": "https://twitter.com/bakkenbaeck",
    "platforms": {
        "ios": "8.0",
        "osx": "10.9",
        "watchos": "2.0",
        "tvos": "9.0"
    },
    "requires_arc": true,
    "source_files": "Sources/**/*",
    "frameworks": "CoreData"
}

Pin It on Pinterest

Share This