Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
苹果有 NSStatusItem 来管理状态栏项目。但它没有 API 从状态栏中显示气球消息。
我知道 Java 有TrayIcon.displayMessage().
TrayIcon.displayMessage()
有谁知道如何用 Xcode C/C++ 实现这个气球消息?
不,气球式消息不是标准 OS X UI 的一部分。许多第三方工具使用Growl框架来实现类似的功能。
这可能是您正在寻找的:http: //mattgemmell.com/2008/03/04/using-maattachedwindow-with-an-nsstatusitem