November 29, 2020

How to set up the NSTrackingSeparatorToolbarItem in macOS 11

I have a small utility app that I am building using AppKit and as such I have decided to adopt the new look and feel of macOS 11 (Big Sur) and the new HIG. So I decided to modify the tool bar of the app and adopt the new NSTrackingSeparatorToolbarItem which will give the app a very distinctive look. The following WWDC talk gives an overview of the new look and feel and what new controls are available in macOS 11. Read more

October 3, 2020

macOS context menu from an NSButton

Currently I am developing a small utility app for the Mac as a side project, and one of the requirements is the ability to open a URL in a browser. The idea was to have a button that when pressed displays a context menu with several options which the user can select from. Kind of like a drop down menu but visually different. I am not an expert in macOS development and I am very inexperienced when it comes to AppKit, thus what seemed like a simple task actually took me some time. Read more

Copyright Ⓒ 2020 Christian Giacomi