• Glasses

Cocoa, Swift, MIDI & Fractals

Custom Keyboard View with Bindings

December 31, 2016 - No Comments

The code for this is at GitHub.
If you run it you will see that you can select/unselect keys, singly or with click-drag. Undo works. Save works. The “XYZ” label does nothing currently.

This

DispatchQueue Priorities

November 25, 2016 - No Comments

In attempting to create a high priority queue I ran into the problem of Apple’s terrible documentation on this front. We have this new DispatchQoS.QoSClass enumeration, which consists of { userInteractive, userInitiated, default, utility, background,

Nested withUnsafeMutablePointer()

November 22, 2016 - No Comments

Since withUnsafeMutablePointers() has gone away, I typed out this example of using nested withUnsafeMutablePointer() so I was sure I knew what I was doing:

var int1 = UInt32(1)
var bytes1 = [UInt8(1), UInt8(2), UInt8(3)]