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# - SharpSVN - How to get the previous revision? -

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

url - Querystring manipulation of email Address in PHP -