andlabs-ui/redo/dialog_darwin.go

20 lines
240 B
Go
Raw Normal View History

2014-08-19 11:44:42 -05:00
// 19 august 2014
package ui
import (
"unsafe"
)
// #include "objc_darwin.h"
import "C"
func openFile() string {
fname := C.openFile()
if fname == nil {
return ""
}
defer C.free(unsafe.Pointer(fname))
return C.GoString(fname)
}