[英]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.