Changes

Jump to: navigation, search
no edit summary
== Finding a Temporary Directory ==
Most operating systems have a standard directory provided specifically for the purposes of temporarily storing files. Other systems also provide a different temporary directory for each user. The exact location differ differs depending on the platform in question so in order to make your code compatible with as many platforms as possible it is unwise to make assumptions about the location of this temporary directory. Instead, it is much safer to use the ''NSTemporaryDirectory()'' to identify the appropriate directory. This function returns the temporary directory for the current user in the form of an NSString object.
The following code excerpt identifies and then displays the temporary directory using the NSTemporaryDirectory() function:

Navigation menu