4

On Mac OS X, every app has an "About" window, which can be opened by clicking About [appname] in the [appname] menu in the menu bar.

I'd like to open this window programmatically. Is this possible?

EG: The About button for iTunes:

iTunes About Menu Item

Cœur
  • 37,241
  • 25
  • 195
  • 267
lukas
  • 2,300
  • 6
  • 28
  • 41

1 Answers1

6

The About menu item is connected to the orderFrontStandardAboutPanel method of NSApplication, you can call it programmatically with

[NSApp orderFrontStandardAboutPanel:self]; // or nil as parameter

or in Swift

NSApp.orderFrontStandardAboutPanel(self) // or nil as parameter
vadian
  • 274,689
  • 30
  • 353
  • 361