[OGo-GNUstep-Port] Re: Patches
Filip Van Raemdonck
gnustep-port@opengroupware.org
Fri, 18 Jul 2003 14:11:44 +0200
On Fri, Jul 18, 2003 at 01:21:41PM +0200, Helge Hess wrote:
>
> If you use -rangeOfString:, you need to check the length, to find out
> whether something was actually found:
<...>
> I think I run into this on Cocoa, but I'm not sure.
And it appears you're right, according to
http://216.239.37.104/search?q=cache:3yf0ePoBBYIJ:developer.apple.com/techpubs/macosx/ReleaseNotes/CoreFoundation.html+rangeOfString+location+NSNotFound&hl=nl&ie=UTF-8
which mentions that being a bug and it being fixed in 10.2.
So, I guess it's better to check the length then.
/me goes of fixing that in other changes he has pipelined :-/
Regards,
Filip
--
"The nice thing about standards is that there are so many to choose from.
And if you really don't like all the standards you just have to wait
another year until the one arises you are looking for."
-- Andrew Tanenbaum, "Introduction to Computer Networks"