Calling a function from Objective-C and getting the return value?

Posted by Nick Brooks on Stack Overflow See other posts from Stack Overflow or by Nick Brooks
Published on 2010-05-22T15:26:12Z Indexed on 2010/05/22 15:30 UTC
Read the original article Hit count: 214

Filed under:
|

I have this code

   NSString *tr = [self sendUrl:@"http://google.com/"];

But for some reason 'tr' will remain nil after it is executed. What am I doing wrong?

P.S. sendUrl returns an NSString

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about cocoa