I need to return a NSString from a function:
NSString myfunc ( int x )
{
// do something with x
NSString* myString = [NSString string];
myString = @"MYDATA";
// NSLog(myString);
return *myString;
}
So, I call this function and get *myString. Is that a pointer to the data? How can I get to the data "MYDATA"?