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

silverlight - Applying a style to ItemContainerStyle in C# -

c# - NullReferenceException in MySqlClient.NativeDriver -

php - Updating recent updates - Problem in procedure - Any other approach? -