I am trying to see if there is something in an NSTextField. I boiled it down to just giving a yes or no NSLog response to check it. If it returns no I ask it to print what is there, and it is printing nothing?
This is what is printed in the console
This seems so simple. What am I missing? I have gray'd out placeholder text as default.
Code:
- (IBAction)openDeathCertWindowButton:(id)sender {
NSString *test = @"";
xyz = [nameArray count];
if ([totalXpField stringValue] == test) {
NSLog(@"Yes");
}
else{
NSLog(@"No");
NSLog(@"it says:%@",[totalXpField stringValue]);
}
}
This is what is printed in the console
This GDB was configured as "x86_64-apple-darwin".tty /dev/ttys000
[Switching to process 809 thread 0x0]
2011-08-03 14:34:21.324 Xp Calc2[809:903] No
2011-08-03 14:34:21.325 Xp Calc2[809:903] it says:
This seems so simple. What am I missing? I have gray'd out placeholder text as default.