Here is my code:
PtyView *v = [[PtyView alloc] init];
[v sendData([charlieImputText stringValue])];
in the PtyView.m file I have this:
void sendData(NSString *data) {
NSRunAlertPanel(@"",data,@"",@"",@""); //used for testing
}
But for some reason, the code errors: saying that PtyView may not respond to sendData, and I know that the code is incorrect. How would I accomplish this?
Thanks!