O'Reilly logo

More iPhone Development with Swift: Exploring the iOS SDK by David Mark, Jayant Varma, Jeff LaMarche, Alex Horovitz, Kevin Kim

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter    7

Relationships, Fetched Properties, and Expressions

Welcome to the final chapter on Core Data. So far, your application includes only a single entity, Hero. In this chapter, we’ll show you how managed objects can incorporate and reference other managed objects through the use of relationships and fetched properties. This will give you the ability to make applications of much greater complexity than your current SuperDB application.

That’s not the only thing you’ll do in this chapter, however. You’ll also turn your HeroDetailController into a generic managed object controller. By making the controller code even more generic, you’ll make the controller subclasses smaller and easier to maintain. You’ll extend the configuration property ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required