The resource’s localized or extension-hidden name, returned as an NSString
object (read-only).
SDKs
- iOS 4.0+
- macOS 10.6+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Foundation
Declaration
static let localizedNameKey: URLResource Key
The resource’s localized or extension-hidden name, returned as an NSString
object (read-only).
SDKs
Framework
static let localizedNameKey: URLResource Key
static let keys Of Unset Values Key: URLResource Key
Key for the resource properties that have not been set after the set
method returns an error, returned as an array of NSString
objects.
static let added To Directory Date Key: URLResource Key
The time at which the resource’s was created or renamed into or within its parent directory, returned as an NSDate
. Inconsistent behavior may be observed when this attribute is requested on hard-linked items. This property is not supported by all volumes. (read-only)
static let attribute Modification Date Key: URLResource Key
The time at which the resource’s attributes were most recently modified, returned as an NSDate
object if the volume supports attribute modification dates, or nil
if attribute modification dates are unsupported (read-only).
static let content Access Date Key: URLResource Key
The time at which the resource was most recently accessed.
static let content Modification Date Key: URLResource Key
The time at which the resource was most recently modified.
static let creation Date Key: URLResource Key
The time at which the resource was created.
static let custom Icon Key: URLResource Key
The icon stored with the resource, returned as an NSImage
object, or nil
if the resource has no custom icon.
static let document Identifier Key: URLResource Key
The document identifier returned as an NSNumber
(read-only).
static let effective Icon Key: URLResource Key
The resource’s normal icon, returned as an NSImage
object (read-only).
static let generation Identifier Key: URLResource Key
An opaque generation identifier, returned as an id <NSCopying, NSCoding, NSObject>
(read-only)
static let has Hidden Extension Key: URLResource Key
Key for determining whether the resource’s extension is normally removed from its localized name, returned as a Boolean NSNumber
object (read-write).
static let is Excluded From Backup Key: URLResource Key
Key for determining whether the resource is excluded from all backups of app data, returned as a Boolean NSNumber
object (read-write).
static let is Executable Key: URLResource Key
Key for determining whether the current process (as determined by the EUID) can execute the resource (if it is a file) or search the resource (if it is a directory), returned as a Boolean NSNumber
object (read-only).
static let is Hidden Key: URLResource Key
Key for determining whether the resource is normally not displayed to users, returned as a Boolean NSNumber
object (read-write).
static let is Readable Key: URLResource Key
Key for determining whether the current process (as determined by the EUID) can read the resource, returned as a Boolean NSNumber
object (read-only).
static let is Symbolic Link Key: URLResource Key
Key for determining whether the resource is a symbolic link, returned as a Boolean NSNumber
object (read-only).
static let is System Immutable Key: URLResource Key
Key for determining whether the resource's system immutable bit is set, returned as a Boolean NSNumber
object (read-write).
static let is User Immutable Key: URLResource Key
Key for determining whether the resource's user immutable bit is set, returned as a Boolean NSNumber
object (read-write).
static let is Writable Key: URLResource Key
Key for determining whether the current process (as determined by the EUID) can write to the resource, returned as a Boolean NSNumber
object (read-only).
static let label Color Key: URLResource Key
The resource’s label color, returned as an NSColor
object, or nil
if the resource has no label color (read-only).
static let label Number Key: URLResource Key
The resource’s label number, returned as an NSNumber
object (read-write).
static let link Count Key: URLResource Key
The number of hard links to the resource, returned as an NSNumber
object (read-only).
static let localized Label Key: URLResource Key
The resource’s localized label text, returned as an NSString
object, or nil
if the resource has no localized label text (read-only).
static let localized Type Description Key: URLResource Key
The resource’s localized type description, returned as an NSString
object (read-only).
static let name Key: URLResource Key
The resource’s name in the file system, returned as an NSString
object (read-write).
static let path Key: URLResource Key
The file system path for the URL, returned as an NSString
object (read-only).
static let tag Names Key: URLResource Key
The names of tags attached to the resource, returned as an array of NSString
values (read-write).
static let type Identifier Key: URLResource Key
The resource’s uniform type identifier (UTI), returned as an NSString
object (read-only).