============================================================================== Converts an NSString to a std::string
| 142 | //============================================================================== |
| 143 | /// Converts an NSString to a std::string |
| 144 | inline std::string getString (id nsString) { if (nsString) return std::string (call<const char*> (nsString, "UTF8String")); return {}; } |
| 145 | /// Converts a raw UTF8 string to an NSString |
| 146 | inline id getNSString (const char* s) { return callClass<id> ("NSString", "stringWithUTF8String:", s != nullptr ? s : ""); } |
| 147 | /// Converts a UTF8 std::string to an NSString |
no outgoing calls
no test coverage detected