Common Methods for Working with Paths

Table 16.3 summarizes many of the commonly used methods for working with paths. In this table, components is an NSArray object containing string objects for each component in a path; path is a string object specifying a path to a file; and ext is a string object indicating a path extension (for example, @"mp4").

Image

Table 16.3 Common Path Utility Methods

Table 16.4 presents functions available to obtain information about a user, her home directory, and a directory for storing temporary files.

Image

Table 16.4 Common ...

Get Programming in Objective-C, Sixth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.