macOS– tag –
-
How To write C++ callbacks in Swift’s closure
When you have a library implemented in C++ and you want to use it from an application implemented in Swift, this article explains how to write a callback function to be passed to the library in Swift's closure. 【Swift and C++ Interopera... -
How to read/write control values in AppKit (about outlets) | How to Create macOS Apps
In the previous article, we implemented the process of executing an action when a button is clicked. Actions with buttons are one of the basic things common to most applications. Similarly, reading and writing values of controls is one o... -
How to create buttons in AppKit (about targets and actions) | How to create macOS Apps
Buttons are one of the most frequently used elements in an application. In this article, we will add a "Quit" button to the Cocoa Hello World so that the application can quit from the button as well. This article will continue from the C... -
How to setup OpenCV (for macOS apps)
OpenCV is an open source image processing and machine learning library. It has many features and can be developed more efficiently than implementing all image processing and machine learning processes from scratch. Not only is it highly ... -
Terminate the app when the window is closed | How to create macOS Apps
This article explains that how to terminate the app when the window is closed. We add the code to the Cocoa Hello World which was created in the previous article. You can download it from the following article. 【About the delegate】 App... -
Set the size and the location of the window in the AppKit apps | How To Create macOS Apps
This article is part of a series of articles that create the Cocoa Hello World. This article explains how to set the minimum size and the maximum size of the window. It also add the code to centering the window to HelloWindowController c... -
Add a window controller class of the Cocoa Hello World | How To Create macOS Apps
This is a series of of articles explaining how to create Cocoa version of Hello World. In this article, we create a window class and make it a window controller of the Hello World window. This article uses a sample code which was created... -
Create Cocoa Hello World | How To Create macOS Apps
This is a series of articles explaining how to create a Cocoa version of Hello World. This time, we will create Hello World with zero coding, just editing the Storyboard. In this article, we use Xcode. If you have not installed Xcode, pl... -
Setup Xcode
We use the Xcode to develop applications for the Apple Platform. This article introduce things to start developing. 【Register to the Apple Developer Program】 If you just want to develop an app, get documentation and sample code, and ru... -
Create the window for SwiftUI with the AppKit
The Xcode 13.4.1 on macOS Monterery 12.4 can use only WindowGroup and DocumentGroup to implement the window generation in SwiftUI, so we can't create the single window application. You can't implement the all of the items in the menu bar...