![mac os gui interfaces names mac os gui interfaces names](http://virtualbox.org/manual/images/virtualbox-main.png)
lproj subdirectories, each containing the localized resources for one language. The Resources directory of an application bundle can contain multiple. To provide localized versions of your application's display name, you use the existing bundle localization mechanism. The display name of an application can be localized for the current user. If you need to prompt the user for a filename, use the Open and Save dialogs available through Navigation Services and Cocoa. Important: Users should not be able to modify display names in your interface. For information about these functions, see Launch Services Reference.Ĭocoa application developers can get the display name of a file using the displayNameAtPath: method of NSFileManager. The LSCopyDisplayNameForRef and LSCopyDisplayNameForURL functions return the display name for FSRef and CFURLRef types, respectively.
Mac os gui interfaces names windows#
You should also use display names in other places in your windows where you show filenames, and getting a display name should always be the last thing done before setting the name in a corresponding text field or label.Ĭarbon application developers can get the display name for a file from Launch Services. For example, if you have a document window open, you would use the display name for the title bar of the window. Getting Display Names in Your Codeīecause display names are for display only, you should use them only in your application’s user interface. Applications in those environments must operate on the actual file-system names.
Mac os gui interfaces names mac os x#
Mac OS X does not support display names in the Darwin and Classic environments. However, if you are writing a command-line application, you should not use display names. If you are writing a GUI-based application, you should support display names to avoid discrepancies between the files users pick and the names they see in your application. Mac OS X uses display names in the Finder and in its Open and Save dialogs. If you need to refer to a file, store a copy of the actual file name instead. You should never write the display name of a file to your application preferences or store that name in your internal data structures. Display names should not be considered persistent, that is, assume they can change from one call to the next. You should always use display name strings immediately after retrieving them. You would typically not use display names in an editable text field, especially if the user could modify the text and save the changes.
![mac os gui interfaces names mac os gui interfaces names](https://boscovideo.files.wordpress.com/2010/01/hwmond-after.png)
For example, you would use a display name in the title bar of a document window, in a read-only text field, or in a menu. Display names should always be placed in non-editable controls or in controls whose data is treated as read-only. You use display names only as read-only strings in your application’s user interface. You cannot use display names to manipulate actual files and directories in the file system. If the user changes the preferred language to German, the directory name is still Pictures, but now that directory appears in the Finder as the Bilder folder. For example, the home directory of an English-speaking user has a Pictures directory. Display names are based on file-system names but are modified to reflect the current user’s preferences. Display Name Usage Guidelinesĭisplay names should not be confused with the actual names of files, directories, and applications in the file system. See Filename Extensions for more information. Users sharing the same system still see things their way. Each user can decide whether to show or hide filename extensions. Mac OS X automatically localizes the names of many well-known system directories.įilename extension hiding provides comfort to Macintosh users who are used to the file-naming conventions of earlier versions of the operating system. Application-defined directories can also be localized to make it possible for users to navigate the file system in their native language. Applications can have different names depending on the user’s current language preferences. The localization of applications and directories gives users a more complete localization experience than they might previously have had. Mac OS X currently supports the following display-name customizations:Īpplication and directory name localization Display names let each user customize their view of the file system without modifying the file system or affecting the views of other users. A display name is a generated name for a file, directory, or application that is based on the user’s current preferences. Display Namesĭisplay names are an aspect of the Mac OS X user experience that all applications should support. This document is replaced by File System Programming Guide.