0

我想知道我的mac应用程序中是否可以有一个按钮,当你点击它时,它会打开关于(应用程序名称)窗口?

希望这是有道理的!:)

4

1 回答 1

2

连接NSButtonFile's OwnerorderFrontStandardAboutPanel:像这样选择:

在此处输入图像描述

编辑

或者NSButton直接连接到以下IBAction

- (IBAction)theButton:(id)sender {

    [NSApp orderFrontStandardAboutPanel:self];

 }
于 2011-08-28T18:23:51.580 回答