ApplePlatform– tag –
-
Brush up Objective-C code for Swift
There are many cases in which macOS applications should take advantage of historical processes and existing code, and there are many cases that cannot be completed using Swift alone. Therefore, Objective-C code and C/C++ code coexist. Wh... -
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 avoid pod install errors when building Flutter apps
There are times when pod install fails when trying to build a Flutter app on an Apple Silicon Mac, such as a MacBook Pro M1. This is when the CocoaPods installation process is executed, for example, by adding a package. This article deta... -
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 iOS apps)
OpenCV is an open source image processing and machine learning library. It is a highly functional library that allows you to develop applications more efficiently than implementing all image processing and machine learning processes from... -
What to do when you can’t run iOS simulator on Apple Silicon Mac (arm64 binary error)
Depending on the framework incorporated into the application, the following error may occur and prevent the iOS simulator from running on an Apple Silicon Mac. ld: in /Volumes/Data/src/RK/TechGakuWebSite/SampleCodes/OpenCVTest_iOS/common... -
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...