Skip to main content

nsstring

Function nsstring 

Source
pub unsafe fn nsstring(s: &str) -> Id
Expand description

Create an autoreleased NSString from a Rust &str.

Uses CFStringCreateWithBytes which returns a toll-free-bridged NSString*. Caller must manage the refcount (or let autorelease handle it).