Skip to content

Instantly share code, notes, and snippets.

@jcbnlsn
jcbnlsn / main.lua
Last active November 17, 2015 08:11
OSX Pasteboard
---------------------------------------------------------------------------------
-- Example
---------------------------------------------------------------------------------
local pb = require( "pasteboard" )
pb.copy("Hello osx pasteboard")
print ( pb.paste() )
pb.clear()
@jcbnlsn
jcbnlsn / TextBoxNoAutoCorrection.lua
Last active August 20, 2018 10:52
Turn off auto-correction on native.newTextBox
-- -------------------------------------------------------------------------------
-- TextBoxNoAutoCorrection.lua - native.newTextBox extension
-- with option to turn off auto-correction
-- -------------------------------------------------------------------------------
local initialized, prevPosition, len = nil, 0, string.len
if not initialized then
local nativeNewTextBox = native.newTextBox