In Xcode
I'm trying to get the text of an NSTextField
(Label) to see if it says Yes
or it is says No
I've tried this:
if ([LabelYesNo StringValue] == @"Yes"){
[LabelYesNo setStringValue:@"No"];
else{
[LabelYesNo setStringValue:@"Yes"];
}
}
and
if (LabelYesNo isEqualToString @"Yes"){
[LabelYesNo setStringValue:@"No"];
else{
[LabelYesNo setStringValue:@"Yes"];
}
}
and a few other variations of that. Just can't seem to get it right.... Can anyone help?
Thanks