簡體   English   中英

使用按鈕打開關於(應用程序名稱)(Mac os x)

[英]Opening About (App Name) with a button (Mac os x)

我想知道是否有可能在我的Mac應用程序中有一個按鈕,當你點擊它時,它會打開關於(應用程序名稱)窗口?

希望它有意義! :)

NSButton連接到File's Owner並選擇orderFrontStandardAboutPanel:如下所示:

在此輸入圖像描述

編輯

或者將NSButton直接連接到以下IBAction

- (IBAction)theButton:(id)sender {

    [NSApp orderFrontStandardAboutPanel:self];

 }

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM