Posts about swift

5
Jul
2019

Hierarchies: Finding Parents, Children and Descendents using Swift

It usually doesn't take beginning macOS/iOS developers long to discover NotificationCenter and see it as the solution to every single problem of passing data around to different controllers. And NotificationCenter...
7
Apr
2019

Creating Traits or Mixins in Swift

Object oriented programming is great, but sometimes things don't fit neatly intoa superclass/subclass hierarchy. You may have a piece of code that would be needed in several contexts, but for...
4
Apr
2019

Debugging the Responder Chain in Swift

Somewhat related to my previous post about responder chains, sometimes it is useful to be able to debug what all is in the responder chain at any given time.As a...
2
Apr
2019

The Responder Chain: Bubbling Events using NSResponder and UIResponder in Swift

The responder chain is one of those parts of macOS and iOS development that mayseem a little strange if you have not done any GUI programming before. Briefly,a responder chain...
7
Mar
2019

Sequential Chained Requests with Siesta and Swift

Siesta is a framework for Swiftthat dramatically simplifies working with RESTful APIs. And like many things inSwift, it is natively built around asynchronous execution. It may fire any number of...
28
Dec
2018

New Open Source Code

Launched two new pieces of open source code in the last couple of months. PlayerControlsPlayerControls is a macOS Cocoa framework that creates a View containing playback controls for media like...