func StringCreate(s string) StringRef {
	h := (*reflect.StringHeader)(unsafe.Pointer(&s))
	return StringRef(unsafe.Pointer(C.CFStringCreateWithBytes(
		nil,
		(*C.UInt8)(unsafe.Pointer(h.Data)),
		C.CFIndex(len(s)),
		C.kCFStringEncodingUTF8,
		0,
	)))
}
// StringCreate takes a Go string as argument and creates a String object
// that represents the same content, then returns a reference to the newly
// created string.
//
// It is the program's responsibility to release the object returned by this
// function with a call to Release.
//
// https://developer.apple.com/library/mac/documentation/CoreFoundation/Reference/CFStringRef/index.html#//apple_ref/c/func/CFStringCreateWithBytes
StringCreate takes a Go string as argument and creates a String object
that represents the same content, then returns a reference to the newly
created string.

It is the program's responsibility to release the object returned by this
function with a call to Release.

developer.apple.com/library/mac/documentation/CoreFoundation/Reference/CFStringRef/index.html#//apple_ref/c/func/CFStringCreateWithBytes
// StringCreate takes a Go string as argument and creates a String object // that represents the same content then returns a reference to the newly // created string . // // It is the program ' s responsibility to release the object returned by this // function with a call to Release . // // https : // developer . apple . com / library / mac / documentation / CoreFoundation / Reference / CFStringRef / index . html# // apple_ref / c / func / CFStringCreateWithBytes
func StringCreate(s string) StringRef {
	h := (*reflect.StringHeader)(unsafe.Pointer(&s))
	return StringRef(unsafe.Pointer(C.CFStringCreateWithBytes(
		nil,
		(*C.UInt8)(unsafe.Pointer(h.Data)),
		C.CFIndex(len(s)),
		C.kCFStringEncodingUTF8,
		0,
	)))
}
func StringCreate ( s string ) StringRef { h := ( * reflect . StringHeader ) ( unsafe . Pointer ( & s ) ) return StringRef ( unsafe . Pointer ( C . CFStringCreateWithBytes ( nil , ( * C . UInt8 ) ( unsafe . Pointer ( h . Data ) ) , C . CFIndex ( len ( s ) ) , C . kCFStringEncodingUTF8 , 0 , ) ) ) }
StringCreate takes a Go string as argument and creates a String object
that represents the same content, then returns a reference to the newly
created string.
StringCreate takes a Go string as argument and creates a String object that represents the same content then returns a reference to the newly created string .