Sharing variables - objective-c -
here code:
ptyview *v = [[ptyview alloc] init]; [v senddata([charlieimputtext stringvalue])];
in ptyview.m file have this:
void senddata(nsstring *data) { nsrunalertpanel(@"",data,@"",@"",@""); //used testing }
but reason, code errors: saying ptyview may not respond senddata, , know code incorrect. how accomplish this?
thanks!
senddata not written in objective-c; c primitive function. should write method in obj-c like:
- (void) senddata: (nsstring *)data { nsrunalertpanel(@"",data,@"",@"",@""); }
Comments
Post a Comment