MDItem

Overview

MDItem is a CF-compliant object that represents a file and the metadata associated with the file.

For functions that expect an MDItemRef parameter, if this parameter is not a valid MDItemRef, the behavior is undefined. NULL is not a valid MDItemRef.

Symbols

Creating an MDItem

func MDItemCreate(CFAllocator!, CFString!)

Creates an MDItem object for a file at the specified path.

func MDItemCreateWithURL(CFAllocator!, CFURL!)

Creates an MDItem object for a file at the specified file URL.

Getting the Type Identifier

func MDItemGetTypeID()

Returns the type identifier of all MDItem instances.

Retrieving Metadata Attributes

func MDItemCopyAttribute(MDItem!, CFString!)

Returns the value of the specified attribute in the metadata item.

func MDItemCopyAttributes(MDItem!, CFArray!)

Returns the values of the specified attributes in the metadata item.

func MDItemCopyAttributeNames(MDItem!)

Returns an array containing the attribute names existing in the metadata item.

Data Types

MDItem

A reference to a MDItem object.

Constants

Common Metadata Attribute Keys

Metadata attribute keys that are common to many file types.

Image Metadata Attribute Keys

Metadata attribute keys that are common to image files.

Video Metadata Attribute Keys

Metadata attribute keys that are common to video files.

Audio Metadata Attribute Keys

Metadata attribute keys that describe an audio file.

File System Metadata Attribute Keys

Metadata attribute keys that describe the file system attributes for a file.