Re: An apparent equality is not...
Re: An apparent equality is not...
- Subject: Re: An apparent equality is not...
- From: Brad Bumgarner <email@hidden>
- Date: Wed, 2 Aug 2006 15:38:31 -0600
Thank you for your reply, Drarok Ithaqua also pointed out my error. I
must have replied directly to his email instead of to the list.
I understand (now) how everything "looked" the same with the
exception of the "value" column in the debugger.
I LOVE THIS LANGUAGE!! I will love it even more when I understand it
better. And I'm gaining more understanding every day!!
Thanks again,
Brad Bumgarner, CTA
On Aug 2, 2006, at 3:31 PM, Wain wrote:
Hi,
I think you probably meant to perform a different type of
comparison: [currentLabel isEqualToString:label].
Two NSStrings can contain the same list of characters and will
therefore print the same list of characters but they can still be
different depending on what you compare (the pointer to the
NSString objects).
i.e. you want to compare the contents of the NSStrings and not the
location at which they are stored...
have a look at: http://www.macdevcenter.com/pub/a/mac/2001/06/29/
cocoa.html?page=3 for more info
Wain
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden