addressalign-toparrow-leftarrow-rightbackbellblockcalendarcameraccwcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-checkcircle-with-crosscircle-with-pluscrossdots-three-verticaleditemptyheartexporteye-with-lineeyefacebookfolderfullheartglobegmailgooglegroupshelp-with-circleimageimagesinstagramlinklocation-pinm-swarmSearchmailmessagesminusmoremuplabelShape 3 + Rectangle 1ShapeoutlookpersonJoin Group on CardStartprice-ribbonShapeShapeShapeShapeImported LayersImported LayersImported Layersshieldstartickettrashtriangle-downtriangle-uptwitteruserwarningyahoo

The Joys and Pains of Using Core Data in Swift

  • Apr 14, 2015 · 6:30 PM

The joys and pains of using Core Data in SwiftCore Data is probably loved as much as it is shunned by iOS developers. No matter its pros and cons, it remains a popular choice for many iOS developers as Apple continues to invest in it. Core Data is a framework of great power that often comes with great frustration. When using Swift, we can make Core Data more powerful, and sometimes more frustrating. This talk presents practical strategies for moving away from an Objective-C model, the bugs you'll run into and how to work around them, how Swift can bring clarity to your model objects, and how to harness Swift features (like enums) in your NSManagedObject subclasses.

About your speaker, Jesse Squires 

Jesse is a senior iOS developer at Rosetta Stone whose interests include software design patterns and architecture, cognitive science, animated GIFs, and body modification. He likes his coffee like his metal — black. And when he isn't writing on his blog or contributing on GitHub, you can find him at hardcore and metal shows in the bay area. 

Schedule:  

6:00pm: Doors open.  Look for the doorman standing outside the building.

6:30 - 7pm: Refreshments  and snacks

7pm: Presentation + Q&A

After,  you're welcome to stay for beers or soda or snacks.  

Location:  

The Realm office is on Townsend between 2nd and 3rd. 

Look for the doorman standing outside the building. He'll guide you up. 

Getting there:   

•  5-minute walk to the King St. Caltrain station. 20-minute walk from the Powell St. BART Station.

•  Bike Parking. We don't have bike racks, but you can bring your bike up, but you'll need to carry it to the 2nd floor. The building doesn't have an elevator. 

Thanks to: 

Realm for hosting and providing refreshments. 

Questions? 

Email: Arwa - [masked]

Join or login to comment.

  • Nevyn B.

    Thanks for an interesting talk!

    Re how to lookup the entity description of a managed object without resorting to string manipulation (and which works even if the class does not have the same name as the entity, e g if it is prefixed):

    extension NSManagedObject {
    class func tc_insertIntoContext(context: NSManagedObjectContext) -> Self?
    { let thisClassName : String = NSStringFromClass(self as! AnyClass)
    for desc in context.persistentStoreCoordinator!.managedObjectModel.entities as! [NSEntityDescription] {
    if desc.managedObjectClassName == thisClassName {
    return self(entity:desc, insertIntoManagedObjectContext:context)
    } }
    assert(false, "This class does not exist in the managed object model for \(context)")
    return nil;
    } }

    Downside is that it crashes the swift compiler...

    Gist: https://gist.github.com/nevyn/d22c4684370fa07078dd

    1 · April 16, 2015

Our Sponsors

  • Realm

    Hosting + organizing

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy