문제

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! :)

도움이 되었습니까?

해결책

Connect the NSButton to File's Owner and select orderFrontStandardAboutPanel: like this:

enter image description here

EDIT

Alternatively connect the NSButton directly to the following IBAction:

- (IBAction)theButton:(id)sender {

    [NSApp orderFrontStandardAboutPanel:self];

 }
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top