• 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
Re: Newbie question (if statement)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Newbie question (if statement)


  • Subject: Re: Newbie question (if statement)
  • From: j o a r <email@hidden>
  • Date: Sat, 11 Aug 2007 10:50:05 +0200


On 11 aug 2007, at 10.46, David Remacle wrote:

if (monString == @"David") {


You can't compare strings like that, you need to use:

	if ([monString isEqualToString: @"David"])

Bonus points if you can figure out why!

Cheers,

j o a r


Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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: mmalc crawford <email@hidden>
References: 
 >Newbie question (if statement) (From: David Remacle <email@hidden>)

  • Prev by Date: Re: n00b question about includes
  • Next by Date: Re: n00b question about includes
  • Previous by thread: Newbie question (if statement)
  • Next by thread: Re: Newbie question (if statement)
  • Index(es):
    • Date
    • Thread