Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

1. The Basics > 1.26. Creating Bundles

1.26. Creating Bundles

Problem

You want to group your resources into hierarchical structures and be able to access those resources at runtime with ease.

Solution

Follow these steps to successfully create a bundle:

  1. Create a root folder on your disk that will later become your bundle. For instance, let’s give this folder the name Resources.

  2. Under the Resources folder, create three more folders named Images, Videos, and Sounds.

  3. Under the three aforementioned folders, place related resources. For instance, place one or more images in the Images folder and one or more video files under the Videos folder and so on.

  4. Once you are done, rename your Resources folder to Resources.bundle. Once you add this extension to your folder name, OS X will ask for your confirmation and a dialog similar to that shown in Figure 1-33 will appear on the screen. Press Add on the dialog to add the .bundle extension to the Resources folder.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial