When saving buffer with no url, pop up 'save as' dialog.

Remove a lot of old code.
This commit is contained in:
Nathan Sobo
2011-12-16 16:25:33 -08:00
committed by Corey Johnson & Nathan Sobo
parent ff57cbc8f6
commit 7dcb00f0ec
7 changed files with 91 additions and 75 deletions

View File

@@ -37,7 +37,7 @@ class Native
panel = OSX.NSSavePanel.savePanel
if panel.runModal isnt OSX.NSFileHandlingPanelOKButton
return null
panel.filenames.lastObject
panel.filenames.lastObject.valueOf()
writeToPasteboard: (text) ->
pb = OSX.NSPasteboard.generalPasteboard