在 Cocoa 中创建信息弹出窗口/工具提示 [英] Create informational popup / tooltip in Cocoa

查看:12
本文介绍了在 Cocoa 中创建信息弹出窗口/工具提示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题标题有点模糊,但我真的不知道这个东西叫什么.

The question title is kind of vague, but I really don't know what the thing is called.

我正在尝试创建其中一个黄色信息弹出窗口.谁能告诉我它们叫什么以及如何创建它们?

I am trying to create one of those yellow informational popup things. Anyone can tell me what they're called and how I can create them?

推荐答案

这叫工具提示.您可以使用 setToolTip: 为任何 NSView 设置工具提示.

That's called a tool tip. You can set the tool tip for any NSView using setToolTip:.

这篇关于在 Cocoa 中创建信息弹出窗口/工具提示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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