-
Development
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. Interoperability with C++ is now an official feature in Swift 5.9. This ar... -
Development
How to avoid pod install errors when building Flutter apps
At times, when building a Flutter app on an Apple Silicon Mac, like a MacBook Pro M1, you may encounter failure during pod install. This is when the CocoaPods installation process is executed, for example, by adding a package. This artic... -
Development
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... -
Development
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... -
Development
Resolving iOS Simulator Issues on Apple Silicon Mac (arm64 Binary Error)
Specific frameworks incorporated into an application may lead to an error, preventing the iOS simulator from running on an Apple Silicon Mac. ld: in /Volumes/Data/src/RK/TechGakuWebSite/SampleCodes/OpenCVTest_iOS/common/opencv2.framework... -
Development
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... -
Development
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 ... -
Development
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... -
Development
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... -
Development
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... -
Development
How to export digital certificates on Mac
Mac utilizes Keychain Access for managing installed digital certificates. In addition, Keychain Access manages digital certificates and the following information. Accounts (ID and Password) Secret Memos Degital certificates Public keys P... -
Development
Configure the code signing setting of the Xcode project with the configuration settings file
When developing an iOS app that you plan to distribute as open source or sample code, you might prefer not to embed code signing settings directly into the project file. However, while working locally, you must set the code signing setti... -
Development
Archive only changed files from the Git repository
Git is a version control system that manages the changed history of files. Thanks to this feature, anyone who cloned the same repository can merge changes made by other users. What to do when sending the only changes files to others? Sup... -
Development
Change the search path in the Xcode project with the configuration settings file
Depending on your application requirements, you might require an SDK or software beyond your control. Although the SDK's installation path tends to be consistent, it could vary based on the machine or the developer's preferences. In such... -
Development
Create the PDF has bookmarks (TOC) with Microsoft Word
The recent version of Microsoft Word has a PDF exporter, making it easy to create the PDF. The PDF is very useful. Even if the user doesn't have the software which is used to make the documents can view or print them out. Create a PDF th... -
Development
Define common macros across Xcode projects
When you develop a module consisting of multiple libraries and programs such as SDK, you can define the common macros referenced by multiple projects. For example, when you develop the SDK for communicating with a specific device, suppos... -
Development
How To Create the Xcode Configuration Settings File
The Xcode project configuration is saved in the project file (*.xcodeproj). It is enough for normal-scale application development, but if you develop a middle or large-scale application, you may need more. Moreover, you would like to hav... -
Development
Backup certificates and keys for Xcode
Certificates and keys generated by the Apple Developer Program are saved on your machine. This is because they are needed for development. Therefore, I back them up and restore them when I initialize my machines. This article explains ho... -
Development
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... -
Development
Set the window size in SwiftUI
This article explains how to set the window size, maximum and minimum sizes in a SwiftUI app. 【】 When you define a window using the WindowGroup, your code would look something like this: import SwiftUI @main struct FrameSizeApp: App { ...