Opening About (App Name) with a button (Mac os x)
-
15-01-2021 - |
Pergunta
I was wondering if it would be possible to have a button inside of my mac app and when you click on it, it will open the About (App Name) window?
Hope it makes sense! :)
Solução
Connect the NSButton
to File's Owner
and select orderFrontStandardAboutPanel:
like this:
EDIT
Alternatively connect the NSButton
directly to the following IBAction
:
- (IBAction)theButton:(id)sender {
[NSApp orderFrontStandardAboutPanel:self];
}
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow