On Mar 21, 2015, at 14:02 , Jens Alfke <j...@mooseyard.com> wrote:
> 
>       let s = “……”
>       some_function(s.UTF8String)

Well, “String” is not “NSString”.

So:
        import Cocoa
        var str = "Hello, playground” as NSString
        str.cStringUsingEncoding(NSUTF8StringEncoding) // OK
        str.UTF8String  // OK


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to