rhale1
KU Mac Geek
*Code included below:
I want my if statement to check if the regiterField is equal to the string (declared with NSString, red when used in the 'if' statement). How do I get them to agree?
I want my if statement to check if the regiterField is equal to the string (declared with NSString, red when used in the 'if' statement). How do I get them to agree?
Code:
- (IBAction)registerAction:(id)sender
{
NSString *code = @"dxs-ce-01-12345";
if ([[registerField stringValue] [COLOR=crimson]code[/COLOR]])
{
}
}