Hostingheaderbarlogoj
Join InMotion Hosting for $3.49/mo & get a year on Tuts+ FREE (worth $180). Start today.
Advertisement

Objective-C

  • Core Data
    iOS 8: Core Data and Asynchronous FetchingPreviewimage@2x
    177 shares
    In the previous article about iOS 8 and Core Data, we discussed batch updates. Batch updates aren't the only new API in town. As of iOS 8 and OS X Yosemite, it's possible to asynchronously fetch data. In this tutorial, we'll take a closer look at how to implement asynchronous fetching and in what situations your application can benefit from this new API.Read More…
  • Core Data
    iOS 8: Core Data and Batch UpdatesPreviewimage@2x
    125 shares
    Core Data has been around for many years on OS X and it didn't take Apple long to bring it to iOS. Even though the framework doesn't get as much attention as extensions or handoff, it continues to evolve year over year, and this year, with the release of iOS 8 and OS X Yosemite, is no different. Apple introduced a few new features to the Core Data framework, but the most notable are batch updates and asynchronous fetching. Developers have been asking for these features for many years and Apple finally found a way to integrate them into Core Data. In this tutorial, I will show you how batch updates work and what they mean for the Core Data framework.Read More…
  • Core Data
    Core Data from Scratch: ConcurrencyPreview image@2x
    136 shares
    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…
  • Core Data
    Core Data from Scratch: Subclassing NSManagedObjectPreview image@2x
    131 shares
    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…
  • Core Data
    Core Data from Scratch: MigrationsPreview image@2x
    105 shares
    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…
  • Core Data
    Core Data from Scratch: More NSFetchedResultsControllerPreview image@2x
    109 shares
    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…
  • Swift
    An Introduction to Swift: Part 2Preview image@2x
    245 shares
    In the first article of this introductory series on Swift, we talked about Swift's philosophy, took a first look at its syntax, and highlighted a few key differences with Objective-C. In this article, we continue our exploration of Swift's syntax. You'll also learn about optionals and see how memory management works in Swift.Read More…
  • Core Data
    Core Data from Scratch: NSFetchedResultsControllerPreview image@2x
    146 shares
    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…
  • Swift
    An Introduction to Swift: Part 1Preview image@2x
    466 shares
    At WWDC 2014, Apple has introduced one of the biggest updates to iOS since 2008 from a developer's point of view. They introduced HomeKit, HealthKit, CloudKit, and Extensions, just to name a few. But the biggest surprise out of WWDC 2014 was the introduction of a brand new programming language, Swift. Swift is a wonderful programming language that has been built from the ground up to be efficient and safe. It uses the same APIs that Objective-C does. Or, what you can do in Objective-C, you can do in Swift. It also introduces some new concepts longtime programmers will appreciate and some of which I will cover in this introductory series on Swift.Read More…
  • Mobile Development
    Having Fun with YOLOKitPreview image@2x
    19 shares
    Enumerating collections in Objective-C is often verbose and clunky. If you're used to Ruby or worked with Underscore or Lo-Dash in JavaScript, then you know there're more elegant solutions. That is exactly what the creators of YOLOKit thought when they created this nifty library. YOLOKit's tagline is Enumerate Foundation delightfully and they mean it.Read More…
  • Mobile Development
    Beyond the Basics of JSONModelId47k preview image@2x
    64 shares
    In the previous article, you learned about the basics of JSONModel. You saw how easy it is to work with JSON using JSONModel and how it does a lot for you behind the scenes, such as data validation and conversion. In this tutorial, you will create a more complex application and you will learn about a number of features that bring even more power to your model classes.Read More…
  • Mobile Development
    Key-Value Observing with Facebook's KVOControllerPreview image@2x
    33 shares
    If you've ever worked with KVO (Key-Value Observing) in Cocoa, chances are that you've run into various kinds of issues. The API isn't great and forgetting to remove an observer may result in memory leaks or—even worse—crashes. Facebook's KVOController library aims to solve this problem.Read More…
Advertisement
Suggested Tuts+ Course
Mac Application Development$15
Advertisement