• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Newbie question (if statement)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Newbie question (if statement)
      • From: j o a r <email@hidden>
  • Prev by Date: Re: Watching folders for new files and event handling based on that?
  • Next by Date: Re: n00b question about includes
  • Previous by thread: Re: n00b question about includes
  • Next by thread: Re: Newbie question (if statement)
  • Index(es):
    • Date
    • Thread