How to prevent smart quotes from being entered into a TextArea

For those that still need this, Joe Ranieri posted a solution in Feedback back in 2013 that uses a different set of declares (from AppKit instead of Cocoa): <https://xojo.com/issue/25702>. Don’t exactly know what the difference is, but it worked for me.