objective c - Cast with "char", instead of directly NSString? -


i have code

self.text = [nsstring stringwithutf8string:(char *)sqlite_column_text(init_statement, 0)]; 

i'm wondering why use stringwithutf8string: , char * stuff, instead of directly using nsstring here?

presumably sqlite library not returning nsstrings, being c library knows nothing of objective c.


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

c# - SharpSVN - How to get the previous revision? -

php cli reading files and how to fix it? -