aboutsummaryrefslogtreecommitdiff
path: root/core/init.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2009-07-08 19:39:26 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2009-07-08 19:39:26 -0400
commita8e87e8efd47676ff0f04fbfba14be189b169ebb (patch)
treee04ec88b6ad70d43b39e0c2700a86affc316fa88 /core/init.lua
parent9827462bc8ac4ecc6009f2285c2397bf6ff64777 (diff)
downloadtextadept-a8e87e8efd47676ff0f04fbfba14be189b169ebb.tar.gz
textadept-a8e87e8efd47676ff0f04fbfba14be189b169ebb.zip
Replace lua_dialog with gcocoadialog.
Diffstat (limited to 'core/init.lua')
-rw-r--r--core/init.lua29
1 files changed, 0 insertions, 29 deletions
diff --git a/core/init.lua b/core/init.lua
index 73fdebac..77ae0238 100644
--- a/core/init.lua
+++ b/core/init.lua
@@ -27,9 +27,6 @@ require 'iface'
require 'locale'
require 'events'
require 'file_io'
-if not MAC then
- require 'lua_dialog'
-end
rawset = nil -- do not allow modifications which could compromise stability
@@ -79,29 +76,3 @@ end
-- LuaDoc is in core/.textadept.lua.
function textadept.print(...) textadept._print(locale.MESSAGE_BUFFER, ...) end
-
--- LuaDoc is in core/.textadept.lua.
-function cocoa_dialog(kind, opts)
- local args = { kind }
- for k, v in pairs(opts) do
- args[#args + 1] = '--'..k
- if k == 'items' and kind:find('dropdown') then
- if not MAC then
- for item in v:gmatch('"(.-)"%s+') do args[#args + 1] = item end
- else
- args[#args + 1] = v
- end
- elseif type(v) == 'string' then
- args[#args + 1] = not MAC and v or '"'..v..'"'
- end
- end
- if not MAC then
- return lua_dialog.run(args)
- else
- local cocoa_dialog = '/CocoaDialog.app/Contents/MacOS/CocoaDialog '
- local p = io.popen(_HOME..cocoa_dialog..table.concat(args, ' '))
- local out = p:read('*all')
- p:close()
- return out
- end
-end