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
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 mails | Author | Date |
|---|---|---|
| Brad Bumgarner | Aug 2, 23:02 | |
| Wain | Aug 2, 23:31 | |
| Brad Bumgarner | Aug 2, 23:38 |






Cocoa mail archive

