mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
thirdparty/ui for macOS (temporary)
This commit is contained in:
@ -9,7 +9,8 @@ module darwin
|
||||
struct C.NSString { }
|
||||
|
||||
// macOS and iOS helpers
|
||||
pub fn nsstring(s string) *C.NSString {
|
||||
//pub fn nsstring(s string) *C.NSString {
|
||||
pub fn nsstring(s string) voidptr {
|
||||
// println('ns $s len=$s.len')
|
||||
# return [ [ NSString alloc ] initWithBytesNoCopy:s.str length:s.len
|
||||
# encoding:NSUTF8StringEncoding freeWhenDone: false];
|
||||
|
Reference in New Issue
Block a user