• 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: Comparing a CFStringRef with a string literal?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Comparing a CFStringRef with a string literal?


  • Subject: Re: Comparing a CFStringRef with a string literal?
  • From: Peter Blazejewicz <email@hidden>
  • Date: Sun, 1 Feb 2009 01:18:39 +0100

thx Steve!
Peter
On Feb 1, 2009, at 1:06 AM, Steve Checkoway wrote:


CFStringRef efstr = (CFStringRef)([EFPW stringValue]); if (efstr== CFSTR("my password")){ }


No. Now you're comparing two pointers for equality and they won't be equal.

--
Steve Checkoway
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Comparing a CFStringRef with a string literal? (From: Arnaud Nicolet <email@hidden>)
 >Re: Comparing a CFStringRef with a string literal? (From: Peter Blazejewicz <email@hidden>)
 >Re: Comparing a CFStringRef with a string literal? (From: Steve Checkoway <email@hidden>)

  • Prev by Date: Re: Comparing a CFStringRef with a string literal?
  • Next by Date: Re: XCode and ccache
  • Previous by thread: Re: Comparing a CFStringRef with a string literal?
  • Next by thread: Re: Comparing a CFStringRef with a string literal?
  • Index(es):
    • Date
    • Thread