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? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -