macos:Colors
出自UXGuide.net
请帮助我们修订和更新本文的中文部分
本文的中文部分虽然取自官方最新中文版本,但与英文原版相比已落后了一年多,可能无法反映英文版本中最近的修改,且文中笔误、前后译法矛盾、未翻译完全的片断较多,请您帮助一起修订完善。详情参见中文版修订完善计划。
颜色
Colors
If your application deals with color, you may need a way for the user to enter color information. Mac OS X provides a standard Colors window for picking colors. Shown in Figure 6-3 this window lets the user enter color data using any of five different color models. You should use this window rather than create a custom interface for color selection.
如果您的程序需要处理颜色,那么您可能需要能够让用户输入颜色信息的途径。Mac OS X提供了一个标准的颜色选择窗口,如图6-3所示。该窗口能够让用户以五种颜色模式来输入颜色数据。您应该使用该窗口来进行颜色选择而不是自己定制一个。
Figure 6-3 Colors window
图 6-3 颜色窗口
For information on how to use this window in Cocoa applications, see Color Programming Topics for Cocoa; for Carbon programs, see Color Picker Manager Reference.
关于怎样在Cocoa应用程序中使用该窗口的更多信息,请参考Cocoa颜色编程指南;Carbon程序请参考颜色选择管理器参考。