Bart Jacobs
Bart Jacobs runs Code Foundry, a mobile and web development company based in Belgium and writes about iOS development on his blog. Bart is also the mobile editor of Tuts+.
  • Code
    Core Data and Swift: ConcurrencyPreview image@2x
    If you're developing a small or simple application, then you probably don't see the benefit of running Core Data operations in the background. However, what would happen if you imported hundreds or thousands of records on the main thread during the first launch of your application? The consequences could be dramatic. For example, your application could be killed by Apple's watchdog for taking too long to launch. In this article, we take a look at the dangers when using Core Data on multiple threads and we explore several solutions to tackle the problem.Read More…
  • Code
    Core Data and Swift: Subclassing NSManagedObjectPreview image@2x
    Earlier in this series, we created Done, a simple application to learn more about the NSFetchedResultsController class. In that project, we used key value coding (KVC) and key value observing (KVO) to create and update records. This works fine, but from the moment your project has any kind of complexity, you'll quickly run into issues. Subclassing NSManagedObject makes this much easier.Read More…
  • Code
    Core Data and Swift: MigrationsPreview image@2x
    In the previous articles of this series, we've encountered an annoying issue that we need to address. Whenever we modify the data model of a Core Data application, the persistent store becomes incompatible with the data model. The result is a crash on launch, rendering the application unusable, a serious problem if this happens to an application in the App Store. In this article, we aim to solve this issue by leveraging Core Data migrations.Read More…
  • Code
    Core Data and Swift: More NSFetchedResultsControllerPreview image@2x
    In this tutorial, we continue our exploration of the NSFetchedResultsController class by adding the ability to update and delete to-do items. You'll notice that updating and deleting to-do items is surprisingly easy thanks to the groundwork we laid in the previous tutorial.Read More…
  • Code
    Telerik Platform 2.0: Fast Forward Mobile DevelopmentTelerik@2x
    Telerik Platform is Telerik's answer to mobile, cross-platform application development. It's used by thousands of companies and developers to create robust, cross-platform solutions. Built on this success, Telerik is working hard on Telerik Platform 2.0, which will be released in December.Read More…
  • Code
    Core Data and Swift: NSFetchedResultsControllerPreview image@2x
    In the previous installments of this series, we covered the fundamentals of the Core Data framework. It's time we put our knowledge to use by building a simple application powered by Core Data. In this tutorial, we'll also meet another star player of the Core Data framework, the NSFetchedResultsController class. The application that we're about to create manages a list of to-do items. With the application, we can add, update, and delete to-do items. You'll quickly learn that the NSFetchedResultsController class makes this very easy to do.Read More…
  • Code
    Core Data and Swift: Relationships and More FetchingPreview image@2x
    In the previous article, we learned about NSManagedObject and how easy it is to create, read, update, and delete records using Core Data. However, I didn't mention relationships in that discussion. Aside from a few caveats you need to be aware of, relationships are just as easy to manipulate as attributes. In this article, we will focus on relationships and we'll also continue our exploration of NSFetchRequest.Read More…
  • Code
    Core Data and Swift: Managed Objects and Fetch RequestsPreview image@2x
    With everything about Cora Data data models still fresh in your mind, it's time to start working with Core Data. In this article, we meet NSManagedObject, the class you'll interact with most when working with Core Data. In this tutorial, you'll learn how to create, read, update, and delete records. You'll also get to know a few other Core Data classes, such as NSFetchRequest and NSEntityDescription.Read More…
  • Code
    Core Data and Swift: Data ModelPreview image@2x
    In the first article of this series, we learned about the Core Data stack, the heart of a Core Data application. We explored the managed object context, the persistent store coordinator, and the managed object model. This article focuses on the data model of a typical Core Data application. We zoom in on Xcode's data model editor and we take a look at entities, attributes, and relationships.Read More…
  • Code
    Core Data and Swift: Core Data StackPreview image@2x
    The Core Data framework has been around for many years. It's used in thousands of applications and by millions of people, both on iOS and OS X. Core Data is maintained by Apple and very well documented. In this article, you will learn about the heart of every Core Data application, the Core Data stack.Read More…
  • Code
    What Is a Core Data Fault?Preview image@2x
    Faults are an essential component of Core Data. Even though the term sounds ominous, faults are inherent to the life cycle of a Core Data record. In this tutorial, you'll learn what faults are, how to handle them, and how to debug issues related to faulting.Read More…
  • Code
    Managing Private Pods With CocoaPodsPreview image@2x
    Most of us use open source libraries on a daily basis. With CocoaPods, managing dependencies in a Cocoa project is virtually painless. In some situations, however, a project depends on a library or framework that is closed source, not publicly available. You can still use CocoaPods in such situations. In this tutorial, you'll learn how to set up a private specs repository to manage private libraries.Read More…