Code: Select all
ImportC ""
NSLog(format,message)
EndImport
Define format = CocoaMessage(0,0,"NSString stringWithString:$",@"%S")
Define message = CocoaMessage(0,0,"NSString stringWithString:$",@"test 123")
NSLog(format,message)
I also tried using stringWithUTF8String and passing pointer to PB string directly - it all produces various types of garbage or invalid memory access.
Can anyone help?