NSOutlineView Drag & Drop Reordering in Swift

This is an example showing how two create a two level NSOutlineView with Drag & Drop reordering.  I wanted to create an example that was as simple as possible so that it is a little more clear what is going on.
The Apple example DragNDropOutlineView is very complex and was written in Objective-C rather than Swift.  This example also uses the NSOutlineView in “View” rather than “Cell” mode.  Source code is available at https://github.com/KinematicSystems/NSOutlineViewReorder

Continue reading NSOutlineView Drag & Drop Reordering in Swift

Swift CoreMIDI Callbacks


Fatal error: Uncaught Error: Call to a member function id() on array in /home/kinemati/mattg411.com/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php:36 Stack trace: #0 /home/kinemati/mattg411.com/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php(538): CrayonFormatter::format_code('', Array, Object(CrayonHighlighter)) #1 [internal function]: CrayonFormatter::delim_to_internal(Array) #2 /home/kinemati/mattg411.com/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php(516): preg_replace_callback('#()#msi', 'CrayonFormatter...', 'protocol MIDICa...') #3 /home/kinemati/mattg411.com/wp-content/plugins/crayon-syntax-highlighter/crayon_highlighter.class.php(166): CrayonFormatter::format_mixed_code('protocol MIDICa...', Object(CrayonLang), Object(CrayonHighlighter)) #4 /home/kinemati/mattg411.com/wp-content/plugins/crayon-syntax-highlighter/crayon_highlighter.class.php(186): CrayonHighlighter->process() #5 /home/kinemati/mattg411.com/wp-content/plugins/crayon-syntax-hi in /home/kinemati/mattg411.com/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 36