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"
).
Table 16.4 presents functions available to obtain information about a user, her home directory, and a directory for storing temporary files.
You might want to also look at the Foundation function NSSearchPathForDirectoriesInDomains ...
Get Programming in Objective-C, Fifth 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.