yinomad.blogg.se

Where is the temp folder on mac os word
Where is the temp folder on mac os word










  1. #Where is the temp folder on mac os word how to
  2. #Where is the temp folder on mac os word archive

The preferred way to specify the location of a file or directory is to use the NSURL class. Specifying the Path to a File or Directory For more information about the techniques for reading and writing files that use custom file formats, see Techniques for Reading and Writing Files Without File Coordinators. You have complete control over how you read and write the bytes and how you manage your file-related data structures. When reading and writing the content of custom files, you read and write data as a stream of bytes and apply those bytes to your app’s file-related data structures. In situations where the standard file formats are insufficient, you can always create your own custom file formats.

#Where is the temp folder on mac os word how to

However, you can locate bundles and obtain information about them as needed.įor information about bundles and how you access them, see Bundle Programming GuideĪpps that work with plug-ins and shared libraries need to be able to load the associated code for that item to take advantage of its functionality.įor information about how to load code resources into memory, see Code Loading Programming Topics. Most of the time, you do not work with the bundle itself but with its contents. You access the contents of a file package using NSFileWrapper objects, as described in Using FileWrappers as File Containers.īundles provide a structured environment for storing code and the resources used by that code. For example, you might use a file package if your file format includes both a binary data file and one or more image, video, or audio files. Apps can use file packages to implement complex file formats that contain multiple distinct files, or a mixture of different types of files.

#Where is the temp folder on mac os word archive

An unarchiver reverses the process, using the stream of bytes to re-create the objects and restore them to their previous state.Īrchives are often a convenient alternative to implementing custom binary file formats for your documents or other data files.įor information on how to create and read archive files, see Archives and Serializations Programming Guide.Ī file package is a directory that contains any number of custom data files but which is presented to the user as if it were a single file. An archiver object encodes the state of the objects into a stream of bytes that can be written to disk all at once. You typically load the contents of a text file into an NSString object but may also read and write a text file as a raw stream of characters.įor information about using the NSString class to load text from a file, see String Programming Guide.Ī structured data file usually consists of string-based data arranged using a set of special characters.įor information about parsing XML, see Event-Driven XML Programming Guide.īinary files created using a keyed archiver objectĪn archive is a file format used to store a persistent version of your app’s runtime objects. The process for reading data from a resource file depends on the resource type.įor information about how to read the contents of resource files, see Resource Programming Guide.Ī text file is an unstructured sequence of ASCII or Unicode characters. Resource files are commonly used to store localizable content such as strings and images.

where is the temp folder on mac os word

Table 2-1 File types with specialized routinesĪpps use resource files to store data that is independent of the code that uses it. Table 2-1 lists the common file types supported by the system along with information about how you access them. For these standard file formats, use the higher-level options for reading and writing the file contents. macOS and iOS provide built-in support that makes opening many types of standard file formats (such as text files, images, sounds, and property lists) much easier.

where is the temp folder on mac os word

Choose the Right Way to Access FilesĪlthough you can open any file and read its contents as a stream of bytes, doing so is not always the right choice. For custom file types, you may need to read the raw file data yourself. For known file types, you typically use built-in system routines to read or write the file contents and give you an object that you can use.

where is the temp folder on mac os word

Depending on the type of file, you may have several options. When you know the location of a file, you can then start planning the best way to access it. You can also specify locations manually by building a URL or string-based path from known directory names. The system frameworks provide many routines for obtaining references to many well-known directories, such as the Library directory and its contents. Next Previous Accessing Files and Directoriesīefore you can open a file, you first have to locate it in the file system.












Where is the temp folder on mac os word