简体   繁体   English

更改Mac App上的“关于此”窗口

[英]Change the “about this” window on mac app

On Macs, there's a default menu at the top for basic application handling functions: 在Mac上,顶部有一个默认菜单,用于基本的应用程序处理功能:

编辑器菜单栏

I've made an application using Java for my Grade 10 final project, (and I'm quite convinced that it's better than Microsoft Paint) and I decided to package it. 我为我的10年级最终项目制作了一个使用Java的应用程序(并且我坚信它比Microsoft Paint更好),因此我决定将其打包。 Using Eclipse, I exported it as a Mac OS X Application Bundle. 使用Eclipse,我将其导出为Mac OS X应用程序捆绑包。 However, I want to change the "About Editor" on the default menu. 但是,我想更改默认菜单上的“关于编辑器”。 Currently, it shows this: 当前,它显示如下:

关于编辑器

How can I change the contents of the About Window (My app is definitely not Version 1.0.1)? 如何更改“关于窗口”的内容(我的应用程序绝对不是版本1.0.1)? I'm hoping not to go into Xcode or anything, but is there something that I can change with something like System.setProperty(key, value) ? 我希望不要使用Xcode或其他任何东西,但是可以使用System.setProperty(key, value)类的东西来更改吗?

If your application is an .app bundle then it should have an info.plist . 如果您的应用程序是.app bundle ,则应具有info.plist Inside the info.plist will normally contain version information that should display the version number: info.plist内部通常将包含版本信息,该信息应显示版本号:

<key>CFBundleShortVersionString</key>
<string>2.0.0</string>

Typically the version information here is populated in places that call for it (eg. About). 通常,此处的版本信息会填充在需要它的地方(例如,关于)。 To change the name that would display on the menu and within the about dialog box: 要更改将在菜单上和关于对话框中显示的名称:

<key>CFBundleName</key>
<string>My Application</string>

Copyright Info: 版权信息:

<key>NSHumanReadableCopyright</key>
<string>Copyright © 2015 Your Company</string>

Bundle Icon File: 捆绑包图标文件:

<key>CFBundleIconFile</key>
<string>icon.icns</string>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM