Hello, I'm trying to detect when a verification code is entered into a text field, so like if I wanted someone to type in "this is a test.", it would then run the following code:
system("say this is a test");
But I keep getting the error "void value not ignored as it ought to be". I have no idea what this means. This is what I have so far, but I think I need some other help in which I'll explain below the code.
if ([SpecialCodeTextField setStringValue:[@"this is a test." stringValue]])
{
system("say this is a test");
}
But if I did something on the iPhone SDK, I could do something like:
if (MyTextField.text = @"this is a test")
{
[firstView setHidden:YES];
[secondView setHidden:NO];
}
Or something like that. So what is * MyTextField.text = @"this is a test" * on the x86_64 architecture, or when programming for Mac? I'll do a little school equation for you here:
MyTextField.text = @"this is a test";
is to Changing textfield text on an iPhone
as
???????????????????????????? is to Changing textfield text on a Mac