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

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -