You’re previewing Ry’s Cocoa Tutorial


The Persistent Data and Document-Based Apps chapters explained how to manage a user’s data. But, as developers, we also need the ability to include static resources at compile time. For example, if we want to display custom icons in our user interface, we have to make sure those image files are distributed with the rest of the application.

A bundle is sort of like a ZIP archive for an application. It contains everything the app needs to run in a single file. This includes the executable code, NIB files, images, and any other static resources that the app relies on. Having all this in one place makes it easy to distribute an application while making it hard for users to accidentally corrupt its resources.

Wrapping application resources in a bundle

In this chapter, we’ll learn how to add resources to an Xcode project and access them from within our code. Bundles are a cornerstone of Cocoa’s internationalization capabilities, so we’ll also be discussing how to translate your app into different languages.

Sorry, this is the end of the preview. To read the rest of this chapter, you’ll need to purchase Ry’s Cocoa Tutorial.

Mailing List

Sign up for my low-volume mailing list to find out when new content is released. Next up is a comprehensive Swift tutorial planned for late January.

You’ll only receive emails when new tutorials are released, and your contact information will never be shared with third parties. Click here to unsubscribe.