【问题标题】:Preference pane - Add action on button首选项窗格 - 在按钮上添加操作
【发布时间】:2014-01-23 20:15:59
【问题描述】:

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

如何添加此操作?

对不起我的英语不好

【问题讨论】:

    标签: objective-c macos nspreferencepane


    【解决方案1】:

    写一个方法为IBAction然后assign the action through drag and drop

    - (IBAction)checkboxClicked:(id)sender
    

    【讨论】:

    • 我无法在自动化部分 -> NSPreferencePane 中创建此操作。此文件已锁定编辑
    猜你喜欢
    • 1970-01-01
    • 2013-08-27
    • 2016-05-30
    • 1970-01-01
    • 1970-01-01
    • 2023-03-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多