Newbie question (if statement)
Newbie question (if statement)
- Subject: Newbie question (if statement)
- From: David Remacle <email@hidden>
- Date: Sat, 11 Aug 2007 10:46:09 +0200
hello
I am a totally newbie in cocoa.
I have a little background in C langage.
In my little application a have one window with on edit field and and
one text field and one button
This is the button action :
NSString *monString;
monString = [questionFld stringValue];
if (monString == @"David") {
//[resultFLD setStringValue:@"maitre"];
NSLog(@"Hello maitre");
}
else {
[resultFLD setStringValue:monString];
}
If in my questionFLD i put David normaly the if statement do the
NSLog ... but he does not... why ? What is wrong here ?
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden