How append to textview in 2nd function

I'm new to Objective C. I have a textview. I can append to my textview in first function.

However I cannot append in second function.ie I do not see "inside_checkd3file"

in my textview. I do not get any errors in the 2nd function. Below snippet.


How can I append text in second function to textview?


- (void)webViewDidFinishLoad:(UIWebView *)awebView{

NSString *debuglog = @"abc";

NSString *stropidm = @"123";

exporttextview.text = [exporttextview.text stringByAppendingString:debuglog]; // this WORKS

retdvalue = *[vController checkd3file:stropidm];

}


- (NSInteger*) checkd3file:(NSString*)opidmid {

NSLog(@"\ninside_checkd3file");


NSInteger retvalue =0;

NSString *debuglog = @"\ninside_checkd3file";


exporttextview.text = [exporttextview.text stringByAppendingString:debuglog]; // this NOT WORKS

return &retvalue;

}


TIA,

Steve562

SOLVED- this appears to work.

I changed the line of:

retdvalue = *[vController checkd3file:stropidm];


to :

retdvalue = *[self checkd3file:stropidm];

I hope this helps someone else.

How append to textview in 2nd function
 
 
Q