NSSearchPathDirectory Enum

Definition

An enumeration of special directories for use with M:Foundation.NSFileManager.GetURLs*.

public enum NSSearchPathDirectory
type NSSearchPathDirectory = 
Inheritance
NSSearchPathDirectory

Fields

Name Value Description
ApplicationDirectory 1

Applications directory (/Applications).

DemoApplicationDirectory 2

Demo applications directory

DeveloperApplicationDirectory 3

Deprecated, used to be /Developer/Applications.

AdminApplicationDirectory 4

Directory for admin applications (Application/Utilities)

LibraryDirectory 5

Library directory contains documentation, configuration files and support files (Library)

DeveloperDirectory 6

Deprecated, used to be /Developer

UserDirectory 7

User directory (for all users, not the currently logged in user, /Users, /Network/Users for example)

DocumentationDirectory 8

Documentation directory

DocumentDirectory 9

Document directory (this is where an application can store its documents)

CoreServiceDirectory 10

Directory for CoreServices (System/Library/CoreServices)

AutosavedInformationDirectory 11

User autosave directory (Library/Autosave Information)

DesktopDirectory 12

The user’s desktop directory.

CachesDirectory 13

Cache directory (Library/Caches)

ApplicationSupportDirectory 14

Application support directory (Library/Application Support)

DownloadsDirectory 15

Downloads directory (only avaialble when the domain specified includes the User value)

InputMethodsDirectory 16

Input methods directory (Library/Input Methods)

MoviesDirectory 17

User’s movies directory (~/Movies)

MusicDirectory 18

User’s music directory (~/Music)

PicturesDirectory 19

User’s picture directory (~/Pictures)

PrinterDescriptionDirectory 20

Printer descriptions directory, the directory that contains Postcript Printer Description files (Library/Printers/PPDS)

SharedPublicDirectory 21

Shared public directory, when enabled (~/Public)

PreferencePanesDirectory 22

Preference Panes directory, the directory that contains the *.prefPane bundles, (Library/PreferencePanes)

ApplicationScriptsDirectory 23

User scripts directory (Library/Application Scripts/app)

ItemReplacementDirectory 99

Item replacement directory, used for implementing safe-save features.

AllApplicationsDirectory 100

Combined directories where applications can appear.

AllLibrariesDirectory 101

Combined directories where resources can be appear.

TrashDirectory 102

Trash directory

Remarks

Some of these constants when used can return more than one value (for example AllApplicationsDirectory).

Applies to