Re: Substring in String?
Re: Substring in String?
- Subject: Re: Substring in String?
- From: Finlay Dobbie <email@hidden>
- Date: Sun, 17 Feb 2002 18:36:57 +0000
On Sunday, February 17, 2002, at 06:22 PM, Jim Correia wrote:
However, the documentation states that the range {NSNotFound, 0} is
returned if the string isn't found, so the first test would also be
valid way to test for success.
NSNotFound should never be returned in the length field, so your test
should never be a valid way to test for success.
Oops, I was reading .length as .location in Ondra's original message.
Sorry for any confusion caused :-)
-- Finlay
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.