Apple provides a simple way to call the default “About Panel” to display copyright information and another kind of legal/license/… related information. It takes the information available in the Info.plist1 of your application and shows them: NSApplication.sharedApplication().orderFrontStandardAboutPanel(self)2 It shows the icon, the name and the version of your app in...

Every menubar app has its own custom icon, usually, the image is white if the theme of the menubar is set as dark and black vice-versa. It’s important to do that to maintain consistency between every icon in your menu bar so that it doesn’t stand out, in a bad...

It sounded strange to me, but there is no way to enumerate all the cases of an enum automatically baked in the language. As an example I had this enum for three different strings that corresponded to 3 Identifiers of NSToolbarItems:

I’ve been using Swift for close to 7 months now and I’ve seen all kind of weirdness1. Every time I catch something odd or interesting I try to take a note of it. Over time I got a nice collection of those notes 2. I know, I know, there is...

If you want to skip my rambling and get to the answer click here ;)