Obtains the kind string for an item designated by URL.
- macOS 10.0–10.11Deprecated
- Core Services
A Core Foundation URL reference designating the item whose kind string is requested; see the CFURL Reference in the Core Foundation Reference Documentation for a description of the
A pointer to a Core Foundation string object that, on return, will contain the item’s kind string; see the CFString Reference in the Core Foundation Reference Documentation for a description of the
CFStringdata type. You are responsible for releasing this object.
A result code; see Result Codes.
The kind string (which may be localized) is obtained from the item’s preferred application, if one is found in the Launch Services database; otherwise, a more generic kind string is chosen. For example, the kind string might be
Frame, or just
Document if the item is a document for which no application is found. If the item URL’s scheme is
file (designating either a file or a directory), the selection of the preferred application is based on the designated item’s filename extension, file type, and creator signature; otherwise, it is based on the URL scheme (such as
Thread-safe since Mac OS version 10.2.