“首选项”窗格 - 在按钮上添加操作

时间:2014-01-23 20:15:59

标签: objective-c macos nspreferencepane

我是一名Windows程序员,我为Mac OS X创建了第一个程序。 在带向导的XCode中,我创建了一个首选项窗格并添加了按钮,但我不知道如何为此按钮添加操作。此操作必须运行外部程序。

如何添加此操作?

抱歉我的英文不好

1 个答案:

答案 0 :(得分:1)

将方法写为IBAction,然后assign the action through drag and drop

- (IBAction)checkboxClicked:(id)sender
相关问题