macos:Preferences
出自UXGuide.net
请帮助我们修订和更新本文的中文部分
本文的中文部分虽然取自官方最新中文版本,但与英文原版相比已落后了一年多,可能无法反映英文版本中最近的修改,且文中笔误、前后译法矛盾、未翻译完全的片断较多,请您帮助一起修订完善。详情参见中文版修订完善计划。
偏好设置
Preferences
Preference settings are user-defined parameters that your software remembers from session to session. Preferences can be a way for your application to offer choices to users about how the application runs. Preferences often affect the behavior of the application or the default appearance of content created with the application.
偏好设置是用户定义的一组参数,它是让用户定制您的软件行为的一种途径。通常,偏好设置会影响程序的行为或者程序的默认外观。
To reduce the complexity of your application, be picky about which features should have preferences and which should not. Avoid implementing all the preferences you can think of. Instead, be decisive and focus your preferences on the features users might really want to modify.
为了减少您的程序的复杂性,您应该小心考虑什么功能应该有偏好设置,什么功能不应该有。避免想当然的给所有功能提供偏好设置,而是只提供那些用户确实想更改其行为或外观的功能的偏好设置。
A preference should be a setting that the user changes infrequently. If a user might change the attributes of a feature many times in a work session, avoid using preferences to set those attributes. Instead, give the user modeless access to the controls for modifying that feature. For example, you might implement the feature using a menu item or a control in a palette or window.
偏好设置应该是用户不经常修改的设置。如果用户在一个工作会话中需要多次更改某个功能的属性,则避免使用偏好设置来设置这些属性,而是提供一个无模式的控件。例如,您可以使用一个菜单项或者面板上的某个控件。
Because a user does not change preference settings frequently, you should not provide a preferences toolbar item. Instead, provide access to application-level preferences in the application menu (see “The Application Menu” for more information) and to document-specific preferences in the File menu (see “The File Menu” for more information).
因为用户不是很经常改变偏好设置,所以您不需要提供一个偏好设置的工具栏按钮,而是在程序菜单(更多信息参考 “程序菜单”)中提供整个程序级别的访问,在文件菜单(更多信息参考 “文件菜单”)中提供文档级别的访问。
For information on implementing preferences with Cocoa, see User Defaults Programming Topics for Cocoa. For information on implementing preferences with Core Foundation, see Preferences Programming Topics for Core Foundation.
关于Cocoa中实现偏好设置的更多信息,请参考Cocoa Defaults编程指南。关于使用Core Foundation实现偏好设置的更多信息,请参考Core Foundation的偏好设置编程。