Skip navigation.
 
mlRe: An apparent equality is not...
FROM : Brad Bumgarner
DATE : Wed Aug 02 23:38:31 2006

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

Related mailsAuthorDate
mlAn apparent equality is not... Brad Bumgarner Aug 2, 23:02
mlRe: An apparent equality is not... Wain Aug 2, 23:31
mlRe: An apparent equality is not... Brad Bumgarner Aug 2, 23:38