Obtains the display name for an item designated by URL.
- macOS 10.1–10.11Deprecated
- Core Services
A Core Foundation URL reference designating the item whose display name is requested; see the CFURL Reference in the Core Foundation Reference Documentation for a description of the
CFURLRefdata type. The URL must have scheme
fileand contain a valid path to either a file or a directory.
A pointer to a Core Foundation string object that, on return, will contain the item’s display name; 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 item’s display name is returned in the form in which it will appear on the user’s screen; it may be localized (for applications and folders), and it excludes the filename extension if the extension is set to be hidden and the Finder preference to always show extensions is not enabled.
Thread-safe since Mac OS version 10.2.