![]() |
Cinder
0.9.1
|
#include <CinderCocoa.h>
Public Member Functions | |
SafeNsString () | |
SafeNsString (NSString *str) | |
SafeNsString (const std::string &str) | |
operator NSString *const () | |
operator std::string () const | |
Represents an exception-safe Cocoa NSString which behaves like a shared_ptr but can implicitly cast itself to NSString*.
cinder::cocoa::SafeNsString::SafeNsString | ( | ) |
cinder::cocoa::SafeNsString::SafeNsString | ( | NSString * | str | ) |
Creates a SafeNsString using an existing NSString. This constructor automatically increments the retain count.
cinder::cocoa::SafeNsString::SafeNsString | ( | const std::string & | str | ) |
Creates a SafeNsString by converting a std::string.
cinder::cocoa::SafeNsString::operator NSString *const | ( | ) |
cinder::cocoa::SafeNsString::operator std::string | ( | ) | const |