Adding dark mode to a UIKit App Nov 4 2020
First, remember create a new branch for the changes, we can do that using Xcode or the git(1)
command-line tool.
Page 1 of 3
First, remember create a new branch for the changes, we can do that using Xcode or the git(1)
command-line tool.
Building a network application requires a good amount of effort, not only because of the complexities of the application you are building but also by the nature of network architecture. We have to define how are we going to handle the connections,...
Read More...The ncurses(3)
library powers many popular text-based applications, for example, emacs(1)
and htop(1)
. The use of ncurses
is not required to build text-based applications. We could use escape sequences. And for small command-line tools escape sequences...
Shoulder surfing is a real threat. And we, as software developers, should strive to provide safety to our users. One way to mitigate the inadvertent exposure of sensitive data is related to how we handle the input of sensitive data in our applications...
Read More...Operating systems have provided command-line interfaces for decades now, and all but the simplest command-line tools require argument parsing. Due to years of use and refinement, there are many expectations on how command-line tools should handle arguments...
Read More...If you've used the Swift Package Manager, you have interacted with its handy command-line tool. When creating command-line tools, we strive to provide an easy to use interface. One of the main characteristics of a good CLI tool is how it handles parameters...
Read More...State machines are used to model systems that can be thought of as a collection of states, and a collection of events that cause state changes. Many of the systems we want to model can be abstracted to a state machine. For example, elements in a Game...
Read More...System libraries are typically defined using C, that means we need a way to make them available to Swift. In this post, we are going to explore how to use the Swift Package Manager to give us access to C libraries, be it system or user-defined.
Let...
Read More...Long gone are the days when single process single thread was the norm. We now take multithreading for granted, we expect all our applications not to lockup when we interact with them. We expect them to handle multiple users at the same time, etcetera...
Read More...Last week we discussed how to build XPC Services(the .xpc
bundles) inside your macOS applications. This week we are going to explore how to provide XPC services that can be used from other applications or tools.
To make the XPC service available to...
Read More...We have access to many Inter-Process-Communication(IPC) mechanisms in macOS. One of the newest is XPC1. Before XPC a common way to use IPC, and provide services between processes, was through Sockets or Mach Messages (Using Mach Ports).
Nowadays,...
Read More...Many components of macOS trace their roots back to BSD. One key aspect inherited from BSD is the Kernel Event Notification mechanism know as Kernel Queues (kqueue
s for short).
In the past, before kqueue(2)
1/ kevent(2)
2, when we wanted to track events...