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.
是否可以在运行时更改我的应用程序的标题,该标题显示在停靠栏中?
您可以尝试更改停靠磁贴的徽章标签:
[[NSApp dockTile] setBadgeLabel:@"My custom text"]
不,这是不可能的。Dock 使用进程的文件系统项的显示名称。对于捆绑的应用程序,这就是应用程序包。
该显示名称可以本地化,但是对于任何给定的系统语言,这是应用程序包的静态属性。