macOS– tag –
-
How To write C++ callbacks with Swift’s closure
This article provides instructions on how to write a callback function using Swift's closure for interfacing with a library written in C++ from Swift application. 【Swift and C++ Interoperability (as of August 4, 2022)】 Swift and C++ do... -
How to read/write control values in AppKit (about outlets) | How to Create macOS Apps
In the previous article, we implemented executing an action when clicking a button. Actions with buttons are one of the basic things common to most applications. Similarly, reading and writing controls' values are a common issue in appli... -
How to create buttons in AppKit (about targets and actions) | How to create macOS Apps
Buttons are among the most frequently used elements in applications. In this article, we will add a "Quit" button to the Cocoa Hello World so that the application can also quit from the button. This article will continue from the Cocoa H... -
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 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】 AppKit u... -
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 and maximum sizes of the window. It also adds the code to center the window to HelloWindowControllerclass. This ... -
Add a window controller class of the Cocoa Hello World | How To Create macOS Apps
This is a series of articles explaining how to create a 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 utilizes the sample code created in t... -
Create Cocoa Hello World | How To Create macOS Apps
This series of articles explains 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, please se... -
Setup Xcode
We use Xcode to develop applications for the App Platform. This article provides an introduction to getting started with development. 【Register to the Apple Developer Program】 If you aim to develop an app, access documentation and samp... -
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...