I am trying to use dispatch_queue_create with a dynamic String that I am creating at runtime as the first parameter. The compiler complains because it expects a standard c
You can get a CString as follows:
CString
import Foundation var str = "Hello, World" var cstr = str.bridgeToObjectiveC().UTF8String
EDIT: Beta 5 Update - bridgeToObjectiveC() no longer exists (thanks @Sam):
bridgeToObjectiveC()
var cstr = (str as NSString).UTF8String