OS X:在何处显示菜单项的工具提示 [英] OS X: where to show tooltips for menu items

查看:50
本文介绍了OS X:在何处显示菜单项的工具提示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于Windows应用程序,将鼠标悬停在状态栏上会在菜单栏中显示详细的菜单描述,这是很常见的.在Mac应用程序中应在哪里显示类似信息?

For Windows applications it is quite common to show verbose descriptions of menu items in the status bar if hovering over them. Where to show similar information in Mac applications?

推荐答案

我使用的大多数Mac应用程序都没有菜单项工具提示.但是,如果这样做,它们就位于菜单项附近,通常不会那么冗长.您可以在设计时在菜单笔尖中提供工具提示文本,也可以在运行时通过调用-[NSMenuItem setToolTip:]来提供工具提示文本,然后操作系统确定工具提示的放置位置.

Most Mac apps I've used don't have menu item tool tips. But if they do, they're near the menu item, and usually not that verbose. You can provide the tool tip text at design time in the menu nib, or at run time by calling -[NSMenuItem setToolTip:], and the OS determines where to place the tool tip.

这篇关于OS X:在何处显示菜单项的工具提示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆