O'Reilly logo

Objective-C Recipes: A Problem-Solution Approach by Matthew Campbell

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    3

Working with Object Collections

This chapter will help you work with arrays and dictionaries using the Foundation framework with Objective-C.

The recipes in this chapter will show you how to:

  • Create arrays using NSArray and NSMutableArray
  • Add, remove, and insert objects into arrays
  • Search and sort arrays
  • Use different procedures to iterate through arrays
  • Save array contents to the file system
  • Create dictionaries using NSDictionary and NSMutableDictionary
  • Add and remove objects from dictionaries
  • Use different procedures to iterate through dictionaries
  • Save dictionary contents to the file system
  • Create sets using NSSet and NSMutableSet
  • Compare sets based on their object contents
  • Use different procedures to iterate through sets

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